From 977bf4d58375af6b85f90c51a1b256dfded708f6 Mon Sep 17 00:00:00 2001 From: Kyle Sanderson Date: Thu, 27 Feb 2014 20:49:19 -0700 Subject: [PATCH] Fix Anti-Flood resolution of gametime (bug 5394, r=psychonic). --- plugins/antiflood.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/antiflood.sp b/plugins/antiflood.sp index a6c55a66..02a93c1b 100644 --- a/plugins/antiflood.sp +++ b/plugins/antiflood.sp @@ -72,7 +72,7 @@ public bool:OnClientFloodCheck(client) return false; } - if (g_LastTime[client] > GetGameTime()) + if (g_LastTime[client] >= GetGameTime()) { /* If player has 3 or more flood tokens, block their message */ if (g_FloodTokens[client] >= 3) @@ -95,7 +95,7 @@ public OnClientFloodResult(client, bool:blocked) new Float:curTime = GetGameTime(); new Float:newTime = curTime + max_chat; - if (g_LastTime[client] > curTime) + if (g_LastTime[client] >= curTime) { /* If the last message was blocked, update their time limit */ if (blocked)