mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-13 11:46:51 +02:00
Merge pull request #2142 from thelounge/xpaw/fix-2141
Set channel state to joined when channel already exists
This commit is contained in:
commit
92bd4ed083
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue