Skip to content

Commit

Permalink
Don't report multiple punishments for a single room (smogon#7606)
Browse files Browse the repository at this point in the history
  • Loading branch information
HoeenCoder authored and Quanyails committed May 12, 2021
1 parent e5412f9 commit 2c55875
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/punishments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,10 @@ export const Punishments = new class {
longestIPPunishment = punishment;
}
}
if (longestIPPunishment) punishments.push([curRoom, longestIPPunishment]);
if (longestIPPunishment) {
punishments.push([curRoom, longestIPPunishment]);
continue;
}
}
}
if (checkMutes && curRoom.muteQueue) {
Expand Down

0 comments on commit 2c55875

Please sign in to comment.