From 0a6d0e1b5de50d030c85c2dbd30febcc5053b855 Mon Sep 17 00:00:00 2001 From: Edo Date: Mon, 22 Aug 2022 18:28:57 +0200 Subject: [PATCH] [Logger] Only filter out coloured strings were needed (#450) --- src/Components/Modules/Logger.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/Logger.cpp b/src/Components/Modules/Logger.cpp index 953fb878..6c80c7d0 100644 --- a/src/Components/Modules/Logger.cpp +++ b/src/Components/Modules/Logger.cpp @@ -28,7 +28,7 @@ namespace Components { std::string out = msg; - // Filter out coloured strings + // Filter out coloured strings for stdout if (out[0] == '^' && out[1] != '\0') { out = out.substr(2); @@ -48,11 +48,11 @@ namespace Components if (!Game::Sys_IsMainThread()) { - Logger::EnqueueMessage(out); + Logger::EnqueueMessage(msg); } else { - Game::Com_PrintMessage(channel, out.data(), 0); + Game::Com_PrintMessage(channel, msg.data(), 0); } }