Add ratelimit for reset votes

This commit is contained in:
elijahr2411
2023-02-12 18:15:12 -05:00
parent 5f603a88d9
commit 7b66f7c8a3
2 changed files with 4 additions and 0 deletions

View File

@@ -272,6 +272,7 @@ export default class WSServer {
case "vote":
if (!client.connectedToNode) return;
if (msgArr.length !== 2) return;
if (!client.VoteRateLimit.request()) return;
switch (msgArr[1]) {
case "1":
if (!this.voteInProgress) {