From 7a0a1b86f64b7678254ab190a7c94003e881d2c9 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 2 Mar 2018 12:29:40 +0200 Subject: [PATCH] Set channel state to joined when channel already exists Fixes #2141 Fixes #2103 --- src/plugins/irc-events/join.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/irc-events/join.js b/src/plugins/irc-events/join.js index d93d3965..f889f51d 100644 --- a/src/plugins/irc-events/join.js +++ b/src/plugins/irc-events/join.js @@ -24,6 +24,8 @@ module.exports = function(irc, network) { // Request channels' modes network.irc.raw("MODE", chan.name); + } else if (data.nick === irc.user.nick) { + chan.state = Chan.State.JOINED; } const user = new User({nick: data.nick});