Merge pull request #3711 from thelounge/xpaw/server-notice-host

Use hostname from notice if available
This commit is contained in:
Richard Lewis 2020-02-10 16:34:22 +02:00 committed by GitHub
commit f8642dd2a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;