only do server-notice checking if we have a "prefix" in event, even if it's None
This commit is contained in:
parent
1380f6c534
commit
c7f32a4066
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
message_split = message.split(" ")
|
message_split = message.split(" ")
|
||||||
target = event["args"][0]
|
target = event["args"][0]
|
||||||
|
|
||||||
if (("prefix" in event and not event["prefix"]) or
|
if "prefix" in event and (not event["prefix"]) or
|
||||||
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)):
|
||||||
|
|
Loading…
Reference in a new issue