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
1 changed files with 2 additions and 0 deletions

View File

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