Going back to old regex trigger

This commit is contained in:
mrhanky 2017-07-06 20:12:42 +02:00
parent 1869922cde
commit a82175a44b
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

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