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