diff --git a/modules/report/commands.js b/modules/report/commands.js index fa16163..6b369da 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -126,11 +126,10 @@ var commands = function(dbot) { if(quiet != 0 || warn != 0 || report != 0) { event.reply(user.primaryNick + ' has been warned ' + warn + ' times, quieted ' + quiet + ' times, and reported ' + report + ' times.'); - async.eachSeries(_.keys(items).sort(function(a, b) { + _.each(_.keys(items).sort(function(a, b) { return moment(a).unix() - moment(b).unix(); - }), function(time, next) { + }), function(time) { event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); - setTimeout(next, 500); }); if(latest_ban.time != 0) {