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

This commit is contained in:
Gaben
2022-04-12 11:19:54 +01:00
committed by GitHub
parent 852703ccca
commit 6e1f095186
2 changed files with 12 additions and 2 deletions
+6 -1
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)
+6 -1
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)