Use hostname from notice if available

This commit is contained in:
Pavel Djundik 2020-01-19 00:53:03 +02:00
parent 304e8bf5b0
commit 4d3fd1c8f2

View File

@ -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;