pass :source or connection_params.hostname through server-notice event

This commit is contained in:
jesopo 2020-01-20 13:48:29 +00:00
parent 8fbf91a2f0
commit 1f2beef0f5

View file

@ -28,8 +28,12 @@ def message(events, event):
if event["line"].source:
event["server"].name = event["line"].source.hostmask
source = (event["server"].name or
event["server"].connection_params.hostname)
events.on("received.server-notice").call(message=message,
message_split=message.split(" "), server=event["server"])
message_split=message.split(" "), server=event["server"],
source=source)
return
if from_self: