generated from Nemesis/Exemple
correction alias boisson
This commit is contained in:
parent
99852a470a
commit
b5315bf239
1 changed files with 3 additions and 0 deletions
|
|
@ -1132,6 +1132,9 @@ async def boissons(room,message): # Gestion des alias de boissons
|
|||
|
||||
if (len(args) > 0):
|
||||
elu = " ".join(args)
|
||||
pos = elu.find(":")
|
||||
if (pos != -1):
|
||||
elu = elu[:pos]
|
||||
|
||||
if (len(elu) > 0 and len(boisson) > 0):
|
||||
mess = "!biere give " + elu + ":" + boisson
|
||||
|
|
|
|||
Loading…
Reference in a new issue