From d5d04db55cc4550173be8471dcb3a9e2b96d1f2f Mon Sep 17 00:00:00 2001 From: Klafyvel Date: Sat, 4 Aug 2018 16:21:35 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9agissons=20correctement=20aux=20pings=20?= =?UTF-8?q?depuis=20telegram?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klafirc/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klafirc/bot.py b/klafirc/bot.py index 8e283e1..dd503ec 100644 --- a/klafirc/bot.py +++ b/klafirc/bot.py @@ -16,7 +16,7 @@ class Bot: self.reactions = {} self.pings = [] self.on_join = None - self.tg_user_match = re.compile('^<(?P.+)>') + self.tg_user_match = re.compile('^<\x03..\x02\x02(?P.+)\x03>') self.ping_match = re.compile('^(<.+> )?\@?{name}'.format(name=nickname)) def add_reaction(self, match, reaction):