VoteOvertime Stopvote bug

This commit is contained in:
ChocoTaco 2021-07-17 11:19:59 -04:00
parent cd954d6c3e
commit fa234d69a5

View file

@ -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