forked from GitHub/dbot
sort is one of the few functions afforded to the array object naturally
This commit is contained in:
parent
4709a11fad
commit
0e47ce22ce
@ -113,7 +113,7 @@ var commands = function(dbot) {
|
|||||||
if(quiet != 0 || warn != 0 || report != 0) {
|
if(quiet != 0 || warn != 0 || report != 0) {
|
||||||
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.');
|
||||||
|
|
||||||
_.each(_.sort(_.keys(items)), function(time) {
|
_.each(_.keys(items).sort(), function(time) {
|
||||||
event.reply('[' + moment(new Date(time)).format('dd/mm/YYYY') + '] ' + items[time]);
|
event.reply('[' + moment(new Date(time)).format('dd/mm/YYYY') + '] ' + items[time]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user