removed debug output
fixed an antiflood bug posted on the forums --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401940
This commit is contained in:
@@ -72,8 +72,6 @@ public bool:OnClientFloodCheck(client)
|
||||
return false;
|
||||
}
|
||||
|
||||
PrintToServer("OCFC: %f %f %d", g_LastTime[client], GetGameTime(), g_FloodTokens[client]);
|
||||
|
||||
if (g_LastTime[client] > GetGameTime())
|
||||
{
|
||||
/* If player has 3 or more flood tokens, block their message */
|
||||
@@ -97,8 +95,6 @@ public OnClientFloodResult(client, bool:blocked)
|
||||
new Float:curTime = GetGameTime();
|
||||
new Float:newTime = curTime + max_chat;
|
||||
|
||||
PrintToServer("OCFR: %f, %f", g_LastTime[client], GetGameTime());
|
||||
|
||||
if (g_LastTime[client] > curTime)
|
||||
{
|
||||
/* If the last message was blocked, update their time limit */
|
||||
|
||||
Reference in New Issue
Block a user