generated from Nemesis/Exemple
showquote purge
This commit is contained in:
parent
55fe181e2b
commit
36cc18552a
1 changed files with 2 additions and 1 deletions
|
@ -1156,11 +1156,12 @@ def quote(room,event): # Gestion des citations
|
|||
args = event['content']['body'].split()
|
||||
args.pop(0)
|
||||
famous = {}
|
||||
quotes[room.room_id] = famous
|
||||
try:
|
||||
famous = quotes[room.room_id]
|
||||
except:
|
||||
famous = {}
|
||||
|
||||
|
||||
if (len(args) > 3 and args[0] == "add"):
|
||||
#ajoute une quote
|
||||
args.pop(0)
|
||||
|
|
Loading…
Reference in a new issue