From c7f32a406645d04cfc80a48114262720dd7211aa Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 14 Nov 2018 22:12:46 +0000 Subject: [PATCH] only do server-notice checking if we have a "prefix" in event, even if it's None --- modules/line_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/line_handler.py b/modules/line_handler.py index 994893ea..e70f6d43 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -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)):