Set channel state to joined when channel already exists

Fixes #2141
Fixes #2103
This commit is contained in:
Pavel Djundik 2018-03-02 12:29:40 +02:00
parent c485ec8c42
commit 7a0a1b86f6

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