Merge pull request #3711 from thelounge/xpaw/server-notice-host
Use hostname from notice if available
This commit is contained in:
commit
f8642dd2a5
@ -14,7 +14,7 @@ module.exports = function(irc, network) {
|
|||||||
// Some servers send notices without any nickname
|
// Some servers send notices without any nickname
|
||||||
if (!data.nick) {
|
if (!data.nick) {
|
||||||
data.from_server = true;
|
data.from_server = true;
|
||||||
data.nick = network.host;
|
data.nick = data.hostname || network.host;
|
||||||
}
|
}
|
||||||
|
|
||||||
data.type = Msg.Type.NOTICE;
|
data.type = Msg.Type.NOTICE;
|
||||||
|
Loading…
Reference in New Issue
Block a user