Handle prefix being null when we've received a server notice (line_handler.py)

This commit is contained in:
jesopo 2019-01-26 19:39:49 +00:00
parent 3b17cbacea
commit 1e72c39fda

View file

@ -464,7 +464,8 @@ class Module(ModuleManager.BaseModule):
event["prefix"].hostmask == event["server"].name or event["prefix"].hostmask == event["server"].name or
target == "*" or target == "*" or
(not event["prefix"].hostname and not event["server"].name)): (not event["prefix"].hostname and not event["server"].name)):
event["server"].name = event["prefix"].hostmask if event["prefix"]:
event["server"].name = event["prefix"].hostmask
self._event(event, "server-notice", message=message, self._event(event, "server-notice", message=message,
message_split=message_split, server=event["server"]) message_split=message_split, server=event["server"])