From 2b800f2a9a335ef082c3affe04f5583e943f46f2 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 7 Dec 2014 00:08:53 -0600 Subject: [PATCH] Hopefully fix typecheckedOn bug --- lib/channel/channel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/channel/channel.js b/lib/channel/channel.js index 4ba3f4a7..13985793 100644 --- a/lib/channel/channel.js +++ b/lib/channel/channel.js @@ -364,6 +364,7 @@ Channel.prototype.acceptUser = function (user) { user.socket.on("disconnect", this.partUser.bind(this, user)); Object.keys(this.modules).forEach(function (m) { + if (user.dead) return; self.modules[m].onUserPostJoin(user); });