3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

i dont have a clue what even fucking fixed that

This commit is contained in:
reality 2013-07-29 21:04:12 +00:00
parent 1b50a3583c
commit 21b2b4eec3
2 changed files with 4 additions and 2 deletions

View File

@ -47,16 +47,18 @@ var pages = function(dbot) {
}, function(warning) {
warnings.push(warning);
}, function(err) {
console.log(warnings);
async.eachSeries(warnings, function(warning, callback) {
dbot.api.users.getUser(warning.warner, function(user) {
warning.warner = user.primaryNick;
callback(false);
});
}, function(err) {
console.log(warnings);
res.render('warnings', {
'name': dbot.config.name,
'server': server,
'warnings': warnings
'warns': warnings
});
});
});

View File

@ -12,7 +12,7 @@ block content
th Warner
th Reason
tbody
each warning, key in warnings
each warning, key in warns
tr
td #{new Date(warning.time)}
td #{warning.warner}