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

whoopsies

This commit is contained in:
reality 2013-08-24 17:56:11 +00:00
parent 3e8ba74459
commit 570239cccf

View File

@ -30,9 +30,11 @@ var pages = function(dbot) {
async.eachSeries(userCount, function(userCount, next) {
dbot.api.users.getUser(userCount.id, function(user) {
userCount['name'] = user.primaryNick;
users.push(userCount);
next();
if(user) {
userCount['name'] = user.primaryNick;
users.push(userCount);
next();
}
});
}, function() {
res.render('channels', {
@ -49,8 +51,6 @@ var pages = function(dbot) {
user = req.user,
notifies = this.pending[user.id];
async.eachSeries
res.render('missing_notifies', {
'user': user.primaryNick,
'notifies': _.sortBy(notifies, 'time')