about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTeetime <anton.tsoulos@yahoo.de>2011-10-22 20:48:05 +0200
committerTeetime <anton.tsoulos@yahoo.de>2011-10-22 20:48:05 +0200
commit418340f4114bb4f5e5f9bf80062e870c1d46e2e3 (patch)
tree0621d098fe83bf86eb9f78d940a4acc27fcb008f
parent22dc341f791627ceead61d0d31d06ce1b1edbff8 (diff)
downloadzcatch-418340f4114bb4f5e5f9bf80062e870c1d46e2e3.tar.gz
zcatch-418340f4114bb4f5e5f9bf80062e870c1d46e2e3.zip
forgot to add SvMuteDuration to the source
-rw-r--r--src/game/server/gamecontext.cpp4
1 files changed, 2 insertions, 2 deletions
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;
 		}