mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
store channel in missing notifies
This commit is contained in:
parent
f9ca9a76d9
commit
24ccdeac8f
@ -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;
|
||||||
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user