Going back to old regex trigger
This commit is contained in:
parent
1869922cde
commit
a82175a44b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user