generated from Nemesis/Exemple
salons
This commit is contained in:
parent
7fc749e03a
commit
6304f2f446
1 changed files with 8 additions and 7 deletions
13
asmodee.py
13
asmodee.py
|
@ -1339,12 +1339,13 @@ def salon(room,event): # Gestion des listes de salons recommandes
|
||||||
if (event['sender'] in admins):
|
if (event['sender'] in admins):
|
||||||
id = args[1]
|
id = args[1]
|
||||||
reponse = "Voici le salon supprimé : \n"
|
reponse = "Voici le salon supprimé : \n"
|
||||||
for rid,fame in salons.items():
|
rid = room.room_id
|
||||||
for cle,valeur in fame.items():
|
fame = salons[rid]
|
||||||
if (str(cle[0]) == id):
|
for cle,valeur in fame.items():
|
||||||
del fame[cle[0]]
|
if (str(cle[0]) == id):
|
||||||
reponse = reponse + rid + " / " + cle[0] + " : " + valeur + "\n"
|
del fame[cle[0]]
|
||||||
break
|
reponse = reponse + rid + " / " + cle[0] + " : " + valeur + "\n"
|
||||||
|
break
|
||||||
msg(salon,reponse)
|
msg(salon,reponse)
|
||||||
elif (event['sender'] in lmod):
|
elif (event['sender'] in lmod):
|
||||||
id = args[1]
|
id = args[1]
|
||||||
|
|
Loading…
Reference in a new issue