From 6b2ebd790d2f62039ca6dda9980292312508ba7e Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 22 Mar 2016 13:08:10 +0200 Subject: [PATCH] Always send notices for non existing targets into server window This matches current master behaviour --- src/plugins/irc-events/message.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/irc-events/message.js b/src/plugins/irc-events/message.js index da5c1467..53cda20b 100644 --- a/src/plugins/irc-events/message.js +++ b/src/plugins/irc-events/message.js @@ -33,18 +33,16 @@ module.exports = function(irc, network) { chan = network.channels[0]; } else { var target = data.target; - var targetedAtUser = false; // If the message is targeted at us, use sender as target instead if (target.toLowerCase() === irc.user.nick.toLowerCase()) { - targetedAtUser = true; target = data.nick; } var chan = network.getChannel(target); if (typeof chan === "undefined") { // Send notices that are not targeted at us into the server window - if (data.type === Msg.Type.NOTICE && !targetedAtUser) { + if (data.type === Msg.Type.NOTICE) { chan = network.channels[0]; } else { chan = new Chan({