From fa234d69a5912aefbd80626da7f3ce86dab95278 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Sat, 17 Jul 2021 11:19:59 -0400 Subject: [PATCH] VoteOvertime Stopvote bug --- Classic/scripts/autoexec/VoteMenu.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index 783c46f..dc81da6 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -449,10 +449,13 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, % } case "stopRunningVote": - if(%client.isSuperAdmin || (%client.isAdmin && $Host::AllowAdminStopVote)) + if($VOStatus !$="InProgress") //Dont allow a stop vote after time has expired, then no new time is set - VoteOverTime { - adminStartNewVote(%client, %typename, %arg1, %arg2, %arg3, %arg4); - adminLog(%client, " stopped the vote in progress."); + if(%client.isSuperAdmin || (%client.isAdmin && $Host::AllowAdminStopVote)) + { + adminStartNewVote(%client, %typename, %arg1, %arg2, %arg3, %arg4); + adminLog(%client, " stopped the vote in progress."); + } } // LakRabbit Stuff