Replacing ACTION with /me
This commit is contained in:
parent
4d725c04b4
commit
d85064f996
|
@ -37,7 +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),
|
||||
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