store channel in missing notifies

This commit is contained in:
reality 2013-08-31 15:47:56 +00:00
parent f9ca9a76d9
commit 24ccdeac8f
2 changed files with 3 additions and 1 deletions

View File

@ -88,11 +88,11 @@ var report = function(dbot) {
}); });
}, function() { }, function() {
offlineUsers = perOps; offlineUsers = perOps;
console.log(offlineUsers);
_.each(offlineUsers, function(id) { _.each(offlineUsers, function(id) {
if(!this.pending[id]) this.pending[id] = []; if(!this.pending[id]) this.pending[id] = [];
this.pending[id].push({ this.pending[id].push({
'time': new Date().getTime(), 'time': new Date().getTime(),
'channel': cName,
'message': message 'message': message
}); });
this.pNotify[id] = true; this.pNotify[id] = true;

View File

@ -11,9 +11,11 @@ block content
thead thead
tr tr
th Date th Date
th Channel
th Message th Message
tbody tbody
each notify in notifies each notify in notifies
tr tr
td #{notify.time} td #{notify.time}
td #{notify.channel}
td #{notify.message} td #{notify.message}