Replacing ACTION with /me
This commit is contained in:
parent
325c7f47a3
commit
4d725c04b4
@ -37,6 +37,7 @@ class Useless(DatabasePlugin):
|
||||
if result:
|
||||
old = result['item']
|
||||
msg = re.sub(search, '\x02{}\x0F'.format(replace), old)
|
||||
msg = re.sub(r'\x01ACTION (.*)\x01', r'/me \1', msg),
|
||||
print(msg)
|
||||
if old != msg:
|
||||
self.bot.privmsg(target, '<{nick}> {msg}'.format(nick=nick,
|
||||
|
Loading…
Reference in New Issue
Block a user