Handle pre-register server NOTICES like :server NOTICE Auth :text

This commit is contained in:
jesopo 2018-09-19 01:14:13 +01:00
parent b7dda02951
commit 7331443631

View file

@ -438,7 +438,8 @@ class LineHandler(object):
target = event["args"][0]
if not event["prefix"] or event["prefix"].hostmask == event["server"
].name or target == "*":
].name or target == "*" or (not event["prefix"].hostname and
not event["server"].name):
event["server"].name = event["prefix"].hostmask
self.events.on("received.server-notice").call(