This commit is contained in:
Nemesis 2018-07-24 17:17:42 +02:00
parent e5a08b7544
commit a7cc781040

View file

@ -1103,7 +1103,7 @@ def biere(room,event):
args = submit[1].split()
except:
args = ""
if (len(args) > 3 and args[0] == "add"):
if (len(args) > 2 and args[0] == "add"):
#ajoute une biere
args.pop(0)
submit = " ".join(args).split(":")
@ -1218,6 +1218,8 @@ def boissons(room,event):
else:
event['content']['body'] = "!biere"
biere(room,event)
def accueil(room,event):
if (event['sender'] in admins):
global welcome