From 6778ba8e8e7d0d49d528a106cc8b80529e9e6133 Mon Sep 17 00:00:00 2001 From: Nemesis Date: Wed, 8 Aug 2018 12:11:01 +0200 Subject: [PATCH] test addquote --- asmodee.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asmodee.py b/asmodee.py index d5ce12b..223ce1b 100755 --- a/asmodee.py +++ b/asmodee.py @@ -1271,10 +1271,10 @@ def addquote(room,event): content['formatted_body'] = string.replace(content['formatted_body'], "addquote", "") except: print("erreur formatted_body " + json.dumps(content)) - + print(json.dumps(content) # Récupération de l'auteur auteur = "Un nain connu" - match = re.search(r"<(\w@\w:\w)>", content['body']) + match = re.search(r"<(\w+@\w+:\w+)>", content['body']) if match: auteur = match.group(1)