Hopefully fix typecheckedOn bug

This commit is contained in:
calzoneman 2014-12-07 00:08:53 -06:00
parent cf60994895
commit 2b800f2a9a
1 changed files with 1 additions and 0 deletions

View File

@ -364,6 +364,7 @@ Channel.prototype.acceptUser = function (user) {
user.socket.on("disconnect", this.partUser.bind(this, user)); user.socket.on("disconnect", this.partUser.bind(this, user));
Object.keys(this.modules).forEach(function (m) { Object.keys(this.modules).forEach(function (m) {
if (user.dead) return;
self.modules[m].onUserPostJoin(user); self.modules[m].onUserPostJoin(user);
}); });