From 8be026129561f05c0ac403ba6814bc1e94be66fb Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 19 Feb 2016 18:57:11 +0000 Subject: [PATCH] things --- modules/report/commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/report/commands.js b/modules/report/commands.js index aa86ccf..a07a482 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -183,19 +183,19 @@ var commands = function(dbot) { if(sTimes.length < 70) { event.reply('[\u00036reports\u000f]'); - _.each(sTimes, function(time) { + _.each(sTimes, function(time, n) { if(items[time].type == 'report') { event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); } }); event.reply('[\u00037quiets\u000f]'); - _.each(sTimes, function(time) { + _.each(sTimes, function(time, n) { if(items[time].type == 'quiet') { event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); } }); event.reply('[\u00035warns\u000f]'); - _.each(sTimes, function(time) { + _.each(sTimes, function(time, n) { if(items[time].type == 'warn') { event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); }