welcome msg

This commit is contained in:
Nemesis 2018-07-24 20:14:04 +02:00
parent 13be39aefe
commit 59f0303c99

View file

@ -1224,7 +1224,8 @@ def accueil(room,event):
if (event['sender'] in admins):
global welcome
args = event['content']['body'].split()
reponse = " ".join(args.pop(0))
args.pop(0)
reponse = " ".join(args)
if (len(args) > 0):
welcome[room.room_id] = reponse
room.send_text("Le message d'accueil est désormais : " + reponse)