From 46d5df86c2aa2caa08793550d87fa59a01850b39 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 14 Mar 2015 10:16:17 +0000 Subject: [PATCH] yes --- modules/report/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/report/commands.js b/modules/report/commands.js index dcacc2b..f1e5c72 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -303,12 +303,12 @@ var commands = function(dbot) { var results = []; this.db.scan('notifies', function(notify) { if(notify && _.has(notify, 'host') && (notify.host == host || notify.message.split(' ')[0] == nick)) { - results.push(notify.message); + results.push(notify); } }, function() { event.reply(nick + ' has sought help ' + results.length + ' times under the host ' + host + ' or nick ' + nick); _.each(results, function(n) { - event.reply(n); + event.reply('[' + moment(parseInt(n.time)).format('DD/MM/YYYY') + '][' + n.user.split('.')[0] '] ' + n.message); }); }); } else {