Merge pull request #2142 from thelounge/xpaw/fix-2141

Set channel state to joined when channel already exists
This commit is contained in:
Jérémie Astori 2018-03-02 21:55:00 -05:00 committed by GitHub
commit 92bd4ed083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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});