Replacing ACTION with /me
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user