generated from Nemesis/Exemple
debug quote
This commit is contained in:
parent
55b98f28fd
commit
7f0de3bb50
1 changed files with 2 additions and 1 deletions
|
@ -998,12 +998,13 @@ def quote(room,event):
|
||||||
elif (len(args) > 1 and args[0] == "del"):
|
elif (len(args) > 1 and args[0] == "del"):
|
||||||
id = args[1]
|
id = args[1]
|
||||||
salon = verifPMRoom(room,event)
|
salon = verifPMRoom(room,event)
|
||||||
reponse = "Voici les citations supprimées : \n"
|
reponse = "Voici la citation supprimée : \n"
|
||||||
for rid,fame in quotes.items():
|
for rid,fame in quotes.items():
|
||||||
for cle,valeur in fame.items():
|
for cle,valeur in fame.items():
|
||||||
if (str(cle[1]) == id):
|
if (str(cle[1]) == id):
|
||||||
del fame[cle[0],cle[1]]
|
del fame[cle[0],cle[1]]
|
||||||
reponse = reponse + rid + "/" + cle[0] + " / " + str(cle[1]) + " : " + valeur + "\n"
|
reponse = reponse + rid + "/" + cle[0] + " / " + str(cle[1]) + " : " + valeur + "\n"
|
||||||
|
break
|
||||||
salon.send_text(reponse)
|
salon.send_text(reponse)
|
||||||
elif (len(args) > 0):
|
elif (len(args) > 0):
|
||||||
# cite une quote d'une personne precise
|
# cite une quote d'une personne precise
|
||||||
|
|
Loading…
Reference in a new issue