From 1869922cdef0c7ba5f53c9b9c379000c51605a66 Mon Sep 17 00:00:00 2001 From: mrhanky Date: Thu, 6 Jul 2017 20:11:16 +0200 Subject: [PATCH] Going back to old regex trigger --- nxy/plugins/regex.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nxy/plugins/regex.py b/nxy/plugins/regex.py index 6132325..057f5ef 100644 --- a/nxy/plugins/regex.py +++ b/nxy/plugins/regex.py @@ -36,9 +36,8 @@ class Useless(DatabasePlugin): if result: old = result['item'] - msg = re.sub(search, '\x02{}\x0F'.format(replace), old) + msg = old.replace(search, '\x02{}\x0F'.format(replace)) msg = re.sub(r'\x01ACTION (.*)\x01', r'/me \1', msg) - print(msg) if old != msg: self.bot.privmsg(target, '<{nick}> {msg}'.format(nick=nick, msg=msg))