From 24ccdeac8f62686b18c919331f633a16146c39ff Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 31 Aug 2013 15:47:56 +0000 Subject: [PATCH] store channel in missing notifies --- modules/report/report.js | 2 +- views/report/missing_notifies.jade | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/report/report.js b/modules/report/report.js index 0ee1d38..7245fb9 100644 --- a/modules/report/report.js +++ b/modules/report/report.js @@ -88,11 +88,11 @@ var report = function(dbot) { }); }, function() { offlineUsers = perOps; - console.log(offlineUsers); _.each(offlineUsers, function(id) { if(!this.pending[id]) this.pending[id] = []; this.pending[id].push({ 'time': new Date().getTime(), + 'channel': cName, 'message': message }); this.pNotify[id] = true; diff --git a/views/report/missing_notifies.jade b/views/report/missing_notifies.jade index c21181c..d41a035 100644 --- a/views/report/missing_notifies.jade +++ b/views/report/missing_notifies.jade @@ -11,9 +11,11 @@ block content thead tr th Date + th Channel th Message tbody each notify in notifies tr td #{notify.time} + td #{notify.channel} td #{notify.message}