Handle trying to strip colours from a PRIVMSG/NOTICE that has no message
This commit is contained in:
parent
f1348e5679
commit
4f74ca4c0c
1 changed files with 3 additions and 2 deletions
|
@ -8,5 +8,6 @@ class Module(ModuleManager.BaseModule):
|
||||||
@utils.hook("preprocess.send.notice")
|
@utils.hook("preprocess.send.notice")
|
||||||
def preprocess(self, event):
|
def preprocess(self, event):
|
||||||
if event["server"].get_setting("strip-color", False):
|
if event["server"].get_setting("strip-color", False):
|
||||||
line = event["line"]
|
message = event["line"].args.get(-1)
|
||||||
line.args[-1] = utils.irc.strip_font(line.args[-1])
|
if not message == None:
|
||||||
|
event["line"].args[-1] = utils.irc.strip_font(message)
|
||||||
|
|
Loading…
Reference in a new issue