Allow h-flag admins to bypass vote delay (#1733)
This commit is contained in:
parent
686e8b4d7e
commit
7c1095e4e7
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user