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);
if (self.inChannel())
self.channel.userLeave(self);
else if (self.inPendingChannel())
self.pendingChannel.userLeave(self);
});
self.socket.on("joinChannel", function (data) {