Permalink
Browse files

Just use a standard for loop here.

  • Loading branch information...
roncli committed Jun 30, 2016
1 parent 682833a commit e24a586293eb3caa3f4af8c6a1e0b8c209c234ab
Showing with 6 additions and 8 deletions.
  1. +6 −8 sixgaming.js
View
@@ -1190,14 +1190,12 @@ SixGaming.discordMessages = {
return Math.random() - 0.5;
});
for (index in user.voiceChannel.members) {
if (user.voiceChannel.members.hasOwnProperty(index)) {
SixGaming.discordQueue(user.voiceChannel.members[index] + ": " + owHeroes[index]);
if (message === "dupe" || message === "dupes") {
owHeroes.sort(function() {
return Math.random() - 0.5;
});
}
for (index = 0; index < user.voiceChannel.members.length; index++) {
SixGaming.discordQueue(user.voiceChannel.members[index] + ": " + owHeroes[index]);
if (message === "dupe" || message === "dupes") {
owHeroes.sort(function() {
return Math.random() - 0.5;
});
}
}
},

0 comments on commit e24a586

Please sign in to comment.