|
|
@ -1338,13 +1338,14 @@ def salon(room,event): # Gestion des listes de salons recommandes |
|
|
|
lmod = modos[room.room_id] |
|
|
|
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 |
|
|
|
reponse = "Voici le salon supprimé : \n" |
|
|
|
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] |
|
|
|