diff options
| author | Teetime <anton.tsoulos@yahoo.de> | 2011-10-22 20:02:41 +0200 |
|---|---|---|
| committer | Teetime <anton.tsoulos@yahoo.de> | 2011-10-22 20:02:41 +0200 |
| commit | 22dc341f791627ceead61d0d31d06ce1b1edbff8 (patch) | |
| tree | 84b181c7b009971f7e0e65fcc94cad353afc1f54 /src/game/server/player.cpp | |
| parent | 505c0606ea7c93f0440394131722a31e6c1bcfe9 (diff) | |
| download | zcatch-22dc341f791627ceead61d0d31d06ce1b1edbff8.tar.gz zcatch-22dc341f791627ceead61d0d31d06ce1b1edbff8.zip | |
added automated mute on spamming
Diffstat (limited to 'src/game/server/player.cpp')
| -rw-r--r-- | src/game/server/player.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/server/player.cpp b/src/game/server/player.cpp index 4ea2a4a6..ea1e0233 100644 --- a/src/game/server/player.cpp +++ b/src/game/server/player.cpp @@ -31,6 +31,7 @@ CPlayer::CPlayer(CGameContext *pGameServer, int ClientID, int Team) m_LastKillTry = Server()->Tick(); m_TicksSpec = 0; m_TicksIngame = 0; + m_ChatTicks = 0; } CPlayer::~CPlayer() @@ -55,7 +56,10 @@ void CPlayer::Tick() m_TicksSpec++; else m_TicksIngame++; - + + if(m_ChatTicks > 0) + m_ChatTicks--; + /* end zCatch*/ // do latency stuff |