From c439b04a2d816584bb83f3c58e307c1831e01608 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Fri, 13 Oct 2017 16:25:26 +0200 Subject: [PATCH] teehistorian: Hide chat from teehistorian There was a missing check that allowed chat messages to be written to disk. --- src/game/server/gamecontext.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index ce4a50537..9dfa11a93 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -1101,7 +1101,10 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) if(m_TeeHistorianActive) { - m_TeeHistorian.RecordPlayerMessage(ClientID, pUnpacker->CompleteData(), pUnpacker->CompleteSize()); + if(m_NetObjHandler.TeeHistorianRecordMsg(MsgID) + { + m_TeeHistorian.RecordPlayerMessage(ClientID, pUnpacker->CompleteData(), pUnpacker->CompleteSize()); + } } if(!pRawMsg)