generated from Nemesis/Exemple
debug modo vide
This commit is contained in:
parent
de0686620e
commit
1ff95d1f95
1 changed files with 5 additions and 1 deletions
|
@ -1273,7 +1273,11 @@ def bienvenue(event): # Affichage d'un message d'accueil aux nouveaux venus
|
||||||
def modo(room,event): # Definition d'un moderateur
|
def modo(room,event): # Definition d'un moderateur
|
||||||
if (event['sender'] in admins):
|
if (event['sender'] in admins):
|
||||||
global modos
|
global modos
|
||||||
lmod = modos[room.room_id]
|
lmod = []
|
||||||
|
try:
|
||||||
|
lmod = modos[room.room_id]
|
||||||
|
except:
|
||||||
|
lmod = []
|
||||||
args = event['content']['body'].split()
|
args = event['content']['body'].split()
|
||||||
args.pop(0)
|
args.pop(0)
|
||||||
if (len(args) > 1 and args[0] == "add"):
|
if (len(args) > 1 and args[0] == "add"):
|
||||||
|
|
Loading…
Reference in a new issue