From 39ba64984933c0c0fb43473785720305b85fa5a1 Mon Sep 17 00:00:00 2001 From: def Date: Wed, 1 Jan 2014 22:06:46 +0100 Subject: [PATCH] Less restrictive spam protection --- src/game/server/gamecontext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 9ea662fec..bc63e1390 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -841,8 +841,8 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) if(pEnd != 0) *(const_cast(pEnd)) = 0; - // drop empty and autocreated spam messages (more than 16 characters per second) - if(Length == 0 || (g_Config.m_SvSpamprotection && pPlayer->m_LastChat && pPlayer->m_LastChat+Server()->TickSpeed()*((15+Length)/16) > Server()->Tick())) + // drop empty and autocreated spam messages (more than 32 characters per second) + if(Length == 0 || (g_Config.m_SvSpamprotection && pPlayer->m_LastChat && pPlayer->m_LastChat+Server()->TickSpeed()*((31+Length)/32) > Server()->Tick())) return; //pPlayer->m_LastChat = Server()->Tick();