This commit is contained in:
psychobunny
2014-12-11 10:17:04 -05:00
parent 94efa6dd87
commit e0c8989e8b
2 changed files with 14 additions and 2 deletions

View File

@@ -78,6 +78,13 @@ var fs = require('fs'),
events.logWithUser(uid, 'restored topic (tid ' + tid + ')');
};
events.logAccountLock = function(uid, until) {
var date = new Date();
date.setTime(date.getTime() + until);
events.logWithUser(uid, 'locked out until ' + date.toString());
};
events.logWithUser = function(uid, string) {
user.getUserField(uid, 'username', function(err, username) {
if(err) {