Fix User#inChannel for channels with passwords
This commit is contained in:
parent
1b1d2596f8
commit
edff85dfb0
1 changed files with 1 additions and 0 deletions
|
|
@ -352,6 +352,7 @@ Channel.prototype.joinUser = function (user, data) {
|
||||||
|
|
||||||
self.checkModules("onUserPreJoin", [user, data], function (err, result) {
|
self.checkModules("onUserPreJoin", [user, data], function (err, result) {
|
||||||
if (result === ChannelModule.PASSTHROUGH) {
|
if (result === ChannelModule.PASSTHROUGH) {
|
||||||
|
user.channel = self;
|
||||||
self.acceptUser(user);
|
self.acceptUser(user);
|
||||||
} else {
|
} else {
|
||||||
user.channel = null;
|
user.channel = null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue