|
@ -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) |
|
|