Fix Anti-Flood resolution of gametime (bug 5394, r=psychonic).

This commit is contained in:
Kyle Sanderson 2014-02-27 20:49:19 -07:00
parent 06efa7c52b
commit 977bf4d583

View File

@ -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)