mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
made the client not play the chat sound for empty chat messages. Closes #967
This commit is contained in:
parent
cc048315a9
commit
4e4019986a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue