From 4d3fd1c8f2f73627e2495c421ea3f759656a7c44 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sun, 19 Jan 2020 00:53:03 +0200 Subject: [PATCH] Use hostname from notice if available --- src/plugins/irc-events/message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/irc-events/message.js b/src/plugins/irc-events/message.js index 8dc0dde7..0798e4c2 100644 --- a/src/plugins/irc-events/message.js +++ b/src/plugins/irc-events/message.js @@ -14,7 +14,7 @@ module.exports = function(irc, network) { // Some servers send notices without any nickname if (!data.nick) { data.from_server = true; - data.nick = network.host; + data.nick = data.hostname || network.host; } data.type = Msg.Type.NOTICE;