mirror of https://github.com/calzoneman/sync.git
Fix User#inChannel for channels with passwords
This commit is contained in:
parent
1b1d2596f8
commit
edff85dfb0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue