Merge pull request #890 from heinrich5991/pr_ddnet_teehistorian_hide_chat

teehistorian: Hide chat from teehistorian
This commit is contained in:
Learath2 2017-10-13 16:30:46 +02:00 committed by GitHub
commit 8770a980f1

View file

@ -1101,7 +1101,10 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
if(m_TeeHistorianActive) 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) if(!pRawMsg)