Allow h-flag admins to bypass vote delay (#1733)

This commit is contained in:
Gaben 2022-04-12 12:19:54 +02:00 committed by Your Name
parent 686e8b4d7e
commit 7c1095e4e7
2 changed files with 12 additions and 2 deletions

View File

@ -406,8 +406,13 @@ void VoteSelect(Menu menu, int param1, int param2 = 0)
bool TestVoteDelay(int client)
{
if (CheckCommandAccess(client, "sm_vote_delay_bypass", ADMFLAG_CONVARS, true))
{
return true;
}
int delay = CheckVoteDelay();
if (delay > 0)
{
if (delay > 60)

View File

@ -308,8 +308,13 @@ void VoteSelect(Menu menu, int param1, int param2 = 0)
bool TestVoteDelay(int client)
{
if (CheckCommandAccess(client, "sm_vote_delay_bypass", ADMFLAG_CONVARS, true))
{
return true;
}
int delay = CheckVoteDelay();
if (delay > 0)
{
if (delay > 60)