List users on server start

This commit is contained in:
Mattias Erming 2014-09-30 13:20:36 -07:00
parent 82899a5fde
commit bf8939cf06
3 changed files with 13 additions and 12 deletions

View File

@ -738,7 +738,7 @@ button {
}
#settings .opt {
display: block;
padding: 10px 0 10px 1px;
padding: 5px 0 10px 1px;
}
#settings .opt input {
float: left;

View File

@ -48,6 +48,9 @@ ClientManager.prototype.loadUser = function(name) {
name,
json
));
console.log(
"User '" + name + "' loaded."
);
}
};
@ -121,9 +124,6 @@ ClientManager.prototype.autoload = function(sockets) {
var added = _.difference(self.getUsers(), loaded);
_.each(added, function(name) {
self.loadUser(name);
console.log(
"User '" + name + "' loaded."
);
});
var removed = _.difference(loaded, self.getUsers());

View File

@ -33,13 +33,14 @@ module.exports = {
}
}
try {
fs.appendFile(
path + "/" + chan + ".log",
line + "\n"
);
} catch(e) {
return;
line + "\n",
function(e) {
if (e) {
console.log("Log#write():\n" + e)
}
}
);
}
};