Fix a slight bug with passworded rooms

This commit is contained in:
calzoneman 2013-12-11 14:30:53 -06:00
parent b15c5654c5
commit 65ce2f661d

View file

@ -112,6 +112,8 @@ User.prototype.initCallbacks = function () {
self.awaytimer && clearTimeout(self.awaytimer); self.awaytimer && clearTimeout(self.awaytimer);
if (self.inChannel()) if (self.inChannel())
self.channel.userLeave(self); self.channel.userLeave(self);
else if (self.inPendingChannel())
self.pendingChannel.userLeave(self);
}); });
self.socket.on("joinChannel", function (data) { self.socket.on("joinChannel", function (data) {