Fix Anti-Flood resolution of gametime (bug 5394, r=psychonic).
Fix Anti-Flood resolution of gametime (
bug 5394, r=psychonic).
1.1 --- a/plugins/antiflood.sp Thu Feb 27 22:17:32 2014 -0500
1.2 +++ b/plugins/antiflood.sp Thu Feb 27 20:49:19 2014 -0700
1.3 @@ -72,7 +72,7 @@
1.4 return false;
1.5 }
1.6
1.7 - if (g_LastTime[client] > GetGameTime())
1.8 + if (g_LastTime[client] >= GetGameTime())
1.9 {
1.10 /* If player has 3 or more flood tokens, block their message */
1.11 if (g_FloodTokens[client] >= 3)
1.12 @@ -95,7 +95,7 @@
1.13 new Float:curTime = GetGameTime();
1.14 new Float:newTime = curTime + max_chat;
1.15
1.16 - if (g_LastTime[client] > curTime)
1.17 + if (g_LastTime[client] >= curTime)
1.18 {
1.19 /* If the last message was blocked, update their time limit */
1.20 if (blocked)