From 51ba68eaa6d790109732a6a5a7daa0098b0de9c3 Mon Sep 17 00:00:00 2001 From: 12pm <30786226+12pm@users.noreply.github.com> Date: Sat, 11 May 2019 00:26:15 +0200 Subject: [PATCH] Don't show id for echo messages --- 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 88a8a67aa..6dca90a8e 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -765,7 +765,7 @@ void CChat::OnPrepareLines() m_aLines[r].m_TextContainerIndex = -1; char aName[64] = ""; - if(g_Config.m_ClShowIDs && m_aLines[r].m_ClientID != -1 && m_aLines[r].m_aName[0] != '\0') + if(g_Config.m_ClShowIDs && m_aLines[r].m_ClientID >= 0 && m_aLines[r].m_aName[0] != '\0') { if(m_aLines[r].m_ClientID >= 10) str_format(aName, sizeof(aName), "%d: ", m_aLines[r].m_ClientID);