From 744e0756974b44dc2cc6e425e833d0617403f8cc Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 25 Apr 2015 11:05:03 +0000 Subject: [PATCH] meh --- modules/report/commands.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/report/commands.js b/modules/report/commands.js index 8fca5c2..6a18f21 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -133,9 +133,13 @@ var commands = function(dbot) { return parseInt(a) - parseInt(b); }); - _.each(sTimes, function(time) { - //event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); - }); + if(sTimes.length > 50) { + _.each(sTimes, function(time) { + event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); + }); + } else { + event.reply('There are too many to show without killing everyone :S'); + } if(latest_ban.time != 0) { if(latest_unban.time == 0 || (latest_unban.time < latest_ban.time)) {