From 85c62b15791204de03d5afd4bdf560dcc32dc4d3 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 12 Apr 2014 12:26:14 -0500 Subject: [PATCH] Add login log message --- lib/channel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/channel.js b/lib/channel.js index 293a6fc3..4480a4e7 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -209,7 +209,7 @@ Channel.prototype.tryLoadState = function () { */ Channel.prototype.loadState = function () { var self = this; - if (self.error) { + if (self.error || self.dead) { return; } @@ -558,6 +558,7 @@ Channel.prototype.join = function (user) { self.sendUserJoin(self.users, user); self.sendUserlist([user]); + self.logger.log("[login] " + user.ip + " logged in as " + user.name); }; var afterIPBan = function () {