Fix permissions check in antiflood (bug 4584, r=dvander).
Fix permissions check in antiflood (
bug 4584, r=dvander).
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 }