pass :source or connection_params.hostname through server-notice event
This commit is contained in:
parent
8fbf91a2f0
commit
1f2beef0f5
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue