showquote purge

This commit is contained in:
Nemesis 2018-08-08 12:59:36 +02:00
parent 55fe181e2b
commit 36cc18552a

View file

@ -1156,11 +1156,12 @@ def quote(room,event): # Gestion des citations
args = event['content']['body'].split() args = event['content']['body'].split()
args.pop(0) args.pop(0)
famous = {} famous = {}
quotes[room.room_id] = famous
try: try:
famous = quotes[room.room_id] famous = quotes[room.room_id]
except: except:
famous = {} famous = {}
if (len(args) > 3 and args[0] == "add"): if (len(args) > 3 and args[0] == "add"):
#ajoute une quote #ajoute une quote
args.pop(0) args.pop(0)