Fix permissions check in antiflood (bug 4584, r=dvander).
This commit is contained in:
parent
f56cc43331
commit
3df08d64e2
@ -67,7 +67,7 @@ public bool:OnClientFloodCheck(client)
|
|||||||
max_chat = GetConVarFloat(sm_flood_time);
|
max_chat = GetConVarFloat(sm_flood_time);
|
||||||
|
|
||||||
if (max_chat <= 0.0
|
if (max_chat <= 0.0
|
||||||
|| (GetUserFlagBits(client) & ADMFLAG_ROOT) == ADMFLAG_ROOT)
|
|| CheckCommandAccess(client, "sm_flood_access", ADMFLAG_ROOT, true))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -87,7 +87,7 @@ public bool:OnClientFloodCheck(client)
|
|||||||
public OnClientFloodResult(client, bool:blocked)
|
public OnClientFloodResult(client, bool:blocked)
|
||||||
{
|
{
|
||||||
if (max_chat <= 0.0
|
if (max_chat <= 0.0
|
||||||
|| (GetUserFlagBits(client) & ADMFLAG_ROOT) == ADMFLAG_ROOT)
|
|| CheckCommandAccess(client, "sm_flood_access", ADMFLAG_ROOT, true))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user