forked from GitHub/dbot
i dont have a clue what even fucking fixed that
This commit is contained in:
parent
1b50a3583c
commit
21b2b4eec3
@ -47,16 +47,18 @@ var pages = function(dbot) {
|
|||||||
}, function(warning) {
|
}, function(warning) {
|
||||||
warnings.push(warning);
|
warnings.push(warning);
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
|
console.log(warnings);
|
||||||
async.eachSeries(warnings, function(warning, callback) {
|
async.eachSeries(warnings, function(warning, callback) {
|
||||||
dbot.api.users.getUser(warning.warner, function(user) {
|
dbot.api.users.getUser(warning.warner, function(user) {
|
||||||
warning.warner = user.primaryNick;
|
warning.warner = user.primaryNick;
|
||||||
callback(false);
|
callback(false);
|
||||||
});
|
});
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
|
console.log(warnings);
|
||||||
res.render('warnings', {
|
res.render('warnings', {
|
||||||
'name': dbot.config.name,
|
'name': dbot.config.name,
|
||||||
'server': server,
|
'server': server,
|
||||||
'warnings': warnings
|
'warns': warnings
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -12,7 +12,7 @@ block content
|
|||||||
th Warner
|
th Warner
|
||||||
th Reason
|
th Reason
|
||||||
tbody
|
tbody
|
||||||
each warning, key in warnings
|
each warning, key in warns
|
||||||
tr
|
tr
|
||||||
td #{new Date(warning.time)}
|
td #{new Date(warning.time)}
|
||||||
td #{warning.warner}
|
td #{warning.warner}
|
||||||
|
Loading…
Reference in New Issue
Block a user