Disable votes when turns are disabled
This commit is contained in:
1 parent
7b66f7c8a3
commit
5e781d5205
1 file changed
+1
@@ -270,6 +270,7 @@ export default class WSServer {
|
||||
this.VM.vnc.keyEvent(keysym, down);
|
||||
break;
|
||||
case "vote":
|
||||
if (!this.turnsAllowed) return;
|
||||
if (!client.connectedToNode) return;
|
||||
if (msgArr.length !== 2) return;
|
||||
if (!client.VoteRateLimit.request()) return;
|
||||
|
||||
Reference in new issue
Block a user