Fix nick-less PRIVMSGs from servers

This commit is contained in:
JeDaYoshi 2021-07-03 15:27:08 +00:00
parent 22801a629e
commit 6439afd5c6
No known key found for this signature in database
GPG Key ID: 8060B288C274219D

View File

@ -27,6 +27,12 @@ module.exports = function (irc, network) {
});
irc.on("privmsg", function (data) {
// Some servers send messages without any nickname
if (!data.nick) {
data.from_server = true;
data.nick = data.hostname || network.host;
}
data.type = Msg.Type.MESSAGE;
handleMessage(data);
});