correction alias boisson

This commit is contained in:
nemesis 2025-11-26 21:10:54 +01:00
parent 99852a470a
commit b5315bf239

View file

@ -1132,6 +1132,9 @@ async def boissons(room,message): # Gestion des alias de boissons
if (len(args) > 0): if (len(args) > 0):
elu = " ".join(args) elu = " ".join(args)
pos = elu.find(":")
if (pos != -1):
elu = elu[:pos]
if (len(elu) > 0 and len(boisson) > 0): if (len(elu) > 0 and len(boisson) > 0):
mess = "!biere give " + elu + ":" + boisson mess = "!biere give " + elu + ":" + boisson