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) {