only do server-notice checking if we have a "prefix" in event, even if it's None

This commit is contained in:
jesopo 2018-11-14 22:12:46 +00:00
parent 1380f6c534
commit c7f32a4066

View file

@ -452,7 +452,7 @@ class Module(ModuleManager.BaseModule):
message_split = message.split(" ")
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
target == "*" or
(not event["prefix"].hostname and not event["server"].name)):