From 65ce2f661db610b09ca4938889a89833b1735b4c Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 11 Dec 2013 14:30:53 -0600 Subject: [PATCH] Fix a slight bug with passworded rooms --- lib/user.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/user.js b/lib/user.js index 1334ab32..9646b0cf 100644 --- a/lib/user.js +++ b/lib/user.js @@ -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) {