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