about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2012-06-10 13:07:31 +0200
committeroy <Tom_Adams@web.de>2013-02-24 17:36:54 +0100
commit4e4019986a763326952719f26798f3184325ce40 (patch)
tree4b5e5499ea402e7f4974587fcdb6ce05f15d671b /src
parentcc048315a99070f6f93b4a9b620df0aeb3bffa47 (diff)
downloadzcatch-4e4019986a763326952719f26798f3184325ce40.tar.gz
zcatch-4e4019986a763326952719f26798f3184325ce40.zip
made the client not play the chat sound for empty chat messages. Closes #967
Diffstat (limited to 'src')
-rw-r--r--src/game/client/components/chat.cpp4
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;