mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
parent
8449f5f6db
commit
bc43019467
1 changed files with 3 additions and 6 deletions
|
@ -332,12 +332,9 @@ void TerminalChatConsole::step(int ch)
|
||||||
if (p.first > m_log_level)
|
if (p.first > m_log_level)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
std::wstring error_message = utf8_to_wide(Logger::getLevelLabel(p.first));
|
auto label = std::string("\x1b(c@red)") + Logger::getLevelLabel(p.first)
|
||||||
if (!g_settings->getBool("disable_escape_sequences")) {
|
+ "\x1b(c@white)";
|
||||||
error_message = std::wstring(L"\x1b(c@red)").append(error_message)
|
m_chat_backend.addMessage(utf8_to_wide(label), utf8_to_wide(p.second));
|
||||||
.append(L"\x1b(c@white)");
|
|
||||||
}
|
|
||||||
m_chat_backend.addMessage(error_message, utf8_to_wide(p.second));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle input
|
// handle input
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue