From 418340f4114bb4f5e5f9bf80062e870c1d46e2e3 Mon Sep 17 00:00:00 2001 From: Teetime Date: Sat, 22 Oct 2011 20:48:05 +0200 Subject: forgot to add SvMuteDuration to the source --- src/game/server/gamecontext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index a22f2415..a34890e5 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -703,9 +703,9 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) SendChatTarget(ClientID, aBuf); return; } - else if((pPlayer->m_ChatTicks += g_Config.m_SvChatValue) > g_Config.m_SvChatThreshold) //is he spamming? + else if(g_Config.m_SvMuteDuration && ((pPlayer->m_ChatTicks += g_Config.m_SvChatValue) > g_Config.m_SvChatThreshold)) //is he spamming? { - AddMute(ClientID, 60); + AddMute(ClientID, g_Config.m_SvMuteDuration); pPlayer->m_ChatTicks = 0; return; } -- cgit 1.4.1