Fix User#inChannel for channels with passwords

This commit is contained in:
Calvin Montgomery 2016-09-17 15:02:30 -07:00
parent 1b1d2596f8
commit edff85dfb0

View file

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