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;