fix order

This commit is contained in:
reality 2016-01-29 22:19:35 +00:00
parent da2ad191c9
commit 2d2d00ccbf

View File

@ -134,7 +134,7 @@ var commands = function(dbot) {
event.reply(user.primaryNick + ' has been warned ' + warn + ' times, quieted ' + quiet + ' times, and reported ' + report + ' times.'); event.reply(user.primaryNick + ' has been warned ' + warn + ' times, quieted ' + quiet + ' times, and reported ' + report + ' times.');
var sTimes = _.keys(items).sort(function(a, b) { var sTimes = _.keys(items).sort(function(a, b) {
return parseInt(a.time) - parseInt(b.time); return parseInt(a) - parseInt(b);
}); });
if(sTimes.length < 70) { if(sTimes.length < 70) {