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