From 991411f28daa3504327b267f48ac4f1e628c5d5d Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 19 Feb 2016 18:55:43 +0000 Subject: [PATCH] thing --- modules/report/commands.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/report/commands.js b/modules/report/commands.js index 4888f75..aa86ccf 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -185,25 +185,25 @@ var commands = function(dbot) { event.reply('[\u00036reports\u000f]'); _.each(sTimes, function(time) { if(items[time].type == 'report') { - event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); + event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); } }); event.reply('[\u00037quiets\u000f]'); _.each(sTimes, function(time) { if(items[time].type == 'quiet') { - event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); + event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); } }); event.reply('[\u00035warns\u000f]'); _.each(sTimes, function(time) { if(items[time].type == 'warn') { - event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); + event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); } }); event.reply('[\u00034bans\u000f]'); - _.each(sTimes, function(time) { + _.each(sTimes, function(time, n) { if(items[time].type == 'ban' || items[time].type == 'unban') { - event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); + event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message); } }); } else {