Handle trying to strip colours from a PRIVMSG/NOTICE that has no message

This commit is contained in:
jesopo 2019-03-08 23:23:38 +00:00
parent f1348e5679
commit 4f74ca4c0c

View file

@ -8,5 +8,6 @@ class Module(ModuleManager.BaseModule):
@utils.hook("preprocess.send.notice")
def preprocess(self, event):
if event["server"].get_setting("strip-color", False):
line = event["line"]
line.args[-1] = utils.irc.strip_font(line.args[-1])
message = event["line"].args.get(-1)
if not message == None:
event["line"].args[-1] = utils.irc.strip_font(message)