From ea6c6953e00e439b6bdddf95861957e5bb957b67 Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 9 Dec 2018 18:58:34 +0100 Subject: [PATCH] fixed chat messages for players with empty names. closes #1775 --- src/game/client/components/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index 08362f55e..ddc462152 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -369,7 +369,7 @@ void CChat::OnMessage(int MsgType, void *pRawMsg) void CChat::AddLine(int ClientID, int Mode, const char *pLine, int TargetID) { - if(*pLine == 0 || (ClientID != -1 && (!g_Config.m_ClShowsocial || m_pClient->m_aClients[ClientID].m_aName[0] == '\0' || // unknown client + if(*pLine == 0 || (ClientID != -1 && (!g_Config.m_ClShowsocial || !m_pClient->m_aClients[ClientID].m_Active || // unknown client m_pClient->m_aClients[ClientID].m_ChatIgnore || g_Config.m_ClFilterchat == 2 || (m_pClient->m_LocalClientID != ClientID && g_Config.m_ClFilterchat == 1 && !m_pClient->m_aClients[ClientID].m_Friend))))