3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-24 04:49:25 +01:00

Fix kickArr reference in ~kickstats

This commit is contained in:
Luke Slater 2012-02-11 16:19:40 +00:00
parent c798e42152
commit 471918d328

View File

@ -42,8 +42,8 @@ var userCommands = function(dbot) {
kickArr = kickArr.slice(kickArr.length - 10).reverse();
var kickString = "Top " + topWhat + ": ";
for(var i=0;i<topKicks.length;i++) {
kickString += topKicks[i][0] + " (" + topKicks[i][1] + "), ";
for(var i=0;i<kickArr.length;i++) {
kickString += kickArr[i][0] + " (" + kickArr[i][1] + "), ";
}
return kickString.slice(0, -2);