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):
|
||||
id = args[1]
|
||||
reponse = "Voici le salon supprimé : \n"
|
||||
for rid,fame in salons.items():
|
||||
for cle,valeur in fame.items():
|
||||
if (str(cle[0]) == id):
|
||||
del fame[cle[0]]
|
||||
reponse = reponse + rid + " / " + cle[0] + " : " + valeur + "\n"
|
||||
break
|
||||
rid = room.room_id
|
||||
fame = salons[rid]
|
||||
for cle,valeur in fame.items():
|
||||
if (str(cle[0]) == id):
|
||||
del fame[cle[0]]
|
||||
reponse = reponse + rid + " / " + cle[0] + " : " + valeur + "\n"
|
||||
break
|
||||
msg(salon,reponse)
|
||||
elif (event['sender'] in lmod):
|
||||
id = args[1]
|
||||
|
|
Loading…
Reference in a new issue