mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-22 07:33:33 +00:00
VoteOvertime Stopvote bug
This commit is contained in:
parent
cd954d6c3e
commit
fa234d69a5
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue