Use hostname from notice if available
This commit is contained in:
parent
304e8bf5b0
commit
4d3fd1c8f2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user