Handle prefix
being null when we've received a server notice (line_handler.py)
This commit is contained in:
parent
3b17cbacea
commit
1e72c39fda
1 changed files with 2 additions and 1 deletions
|
@ -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"])
|
||||||
|
|
Loading…
Reference in a new issue