Tidy up logic to figure out of a NOTICE is a AUTH notice (line_handler.py)

This commit is contained in:
jesopo 2019-02-07 14:25:56 +00:00
parent f5f5a55e21
commit 172acfd0d5

View file

@ -469,10 +469,11 @@ 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
not event["server"].name or
event["prefix"].hostmask == event["server"].name or
target == "*" or
(not event["prefix"].hostname and not event["server"].name)):
target == "*" or):
if event["prefix"]:
event["server"].name = event["prefix"].hostmask