Fix permissions check in antiflood (bug 4584, r=dvander).
authorAsher Baker <asherkin@gmail.com>
Sun Dec 12 18:13:05 2010 -0800 (2010-12-12)
changeset 316687a8cfed8dd2
parent 3165 d428de97a737
child 3167 80684e50a004
Fix permissions check in antiflood (bug 4584, r=dvander).
plugins/antiflood.sp
     1.1 --- a/plugins/antiflood.sp	Sat Dec 04 15:28:15 2010 -0500
     1.2 +++ b/plugins/antiflood.sp	Sun Dec 12 18:13:05 2010 -0800
     1.3 @@ -67,7 +67,7 @@
     1.4  	max_chat = GetConVarFloat(sm_flood_time);
     1.5  	
     1.6  	if (max_chat <= 0.0 
     1.7 -		|| (GetUserFlagBits(client) & ADMFLAG_ROOT) == ADMFLAG_ROOT)
     1.8 + 		|| CheckCommandAccess(client, "sm_flood_access", ADMFLAG_ROOT, true))
     1.9  	{
    1.10  		return false;
    1.11  	}
    1.12 @@ -87,7 +87,7 @@
    1.13  public OnClientFloodResult(client, bool:blocked)
    1.14  {
    1.15  	if (max_chat <= 0.0 
    1.16 -		|| (GetUserFlagBits(client) & ADMFLAG_ROOT) == ADMFLAG_ROOT)
    1.17 + 		|| CheckCommandAccess(client, "sm_flood_access", ADMFLAG_ROOT, true))
    1.18  	{
    1.19  		return;
    1.20  	}