Add login log message

This commit is contained in:
calzoneman 2014-04-12 12:26:14 -05:00
parent 54226c0ca5
commit 85c62b1579

View file

@ -209,7 +209,7 @@ Channel.prototype.tryLoadState = function () {
*/ */
Channel.prototype.loadState = function () { Channel.prototype.loadState = function () {
var self = this; var self = this;
if (self.error) { if (self.error || self.dead) {
return; return;
} }
@ -558,6 +558,7 @@ Channel.prototype.join = function (user) {
self.sendUserJoin(self.users, user); self.sendUserJoin(self.users, user);
self.sendUserlist([user]); self.sendUserlist([user]);
self.logger.log("[login] " + user.ip + " logged in as " + user.name);
}; };
var afterIPBan = function () { var afterIPBan = function () {