diff options
| author | oy <Tom_Adams@web.de> | 2012-06-10 13:07:31 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2013-02-24 17:36:54 +0100 |
| commit | 4e4019986a763326952719f26798f3184325ce40 (patch) | |
| tree | 4b5e5499ea402e7f4974587fcdb6ce05f15d671b | |
| parent | cc048315a99070f6f93b4a9b620df0aeb3bffa47 (diff) | |
| download | zcatch-4e4019986a763326952719f26798f3184325ce40.tar.gz zcatch-4e4019986a763326952719f26798f3184325ce40.zip | |
made the client not play the chat sound for empty chat messages. Closes #967
| -rw-r--r-- | src/game/client/components/chat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index 78b90e93..f3370f94 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -277,9 +277,9 @@ 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(*pLine == 0 || (ClientID != -1 && (m_pClient->m_aClients[ClientID].m_aName[0] == '\0' || // unknown client m_pClient->m_aClients[ClientID].m_ChatIgnore || - (m_pClient->m_Snap.m_LocalClientID != ClientID && g_Config.m_ClShowChatFriends && !m_pClient->m_aClients[ClientID].m_Friend))) + (m_pClient->m_Snap.m_LocalClientID != ClientID && g_Config.m_ClShowChatFriends && !m_pClient->m_aClients[ClientID].m_Friend)))) return; bool Highlighted = false; |