Strip font formatting chars before doing message filtering

This commit is contained in:
jesopo 2019-06-10 14:49:01 +01:00
parent 1e03a40f8f
commit 1625534951

View file

@ -12,7 +12,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("preprocess.send.privmsg")
@utils.hook("preprocess.send.notice")
def channel_message(self, event):
message = event["line"].args[1]
message = utils.irc.strip_font(event["line"].args[1])
target_name = event["line"].args[0]
# strip off any STATUSMSG chars