From edff85dfb02caff45624e527742213adaf466cfe Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Sat, 17 Sep 2016 15:02:30 -0700 Subject: [PATCH] Fix User#inChannel for channels with passwords --- src/channel/channel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/channel/channel.js b/src/channel/channel.js index 3bac4fe6..a5629a0f 100644 --- a/src/channel/channel.js +++ b/src/channel/channel.js @@ -352,6 +352,7 @@ Channel.prototype.joinUser = function (user, data) { self.checkModules("onUserPreJoin", [user, data], function (err, result) { if (result === ChannelModule.PASSTHROUGH) { + user.channel = self; self.acceptUser(user); } else { user.channel = null;