diff options
| author | oy <Tom_Adams@web.de> | 2011-03-22 22:41:27 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-03-22 22:41:27 +0100 |
| commit | b64db75a6b5e6a08c356278ab73d29707579844c (patch) | |
| tree | cc58c2a2def9972c8e04892b9527e08a4ef97f29 /src/game/client/components/chat.cpp | |
| parent | 05244d4dad5a08eb53fdd738588a29e26af72736 (diff) | |
| download | zcatch-b64db75a6b5e6a08c356278ab73d29707579844c.tar.gz zcatch-b64db75a6b5e6a08c356278ab73d29707579844c.zip | |
added an option to ignore other players in chat
Diffstat (limited to 'src/game/client/components/chat.cpp')
| -rw-r--r-- | src/game/client/components/chat.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index 4360fc02..fd08d9d0 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -199,7 +199,8 @@ void CChat::OnMessage(int MsgType, void *pRawMsg) void CChat::AddLine(int ClientID, int Team, const char *pLine) { - if(ClientID != -1 && m_pClient->m_aClients[ClientID].m_aName[0] == '\0') // unknown client + if(ClientID != -1 && m_pClient->m_aClients[ClientID].m_aName[0] == '\0' || // unknown client + m_pClient->m_aClients[ClientID].m_ChatIgnore) return; bool Highlighted = false; |