make hide_download_commands configurable

This commit is contained in:
Martin Michelsen
2023-12-24 22:50:33 -08:00
parent 84ed80365c
commit ad32c0a986
7 changed files with 14 additions and 3 deletions
+2 -1
View File
@@ -191,7 +191,8 @@ Client::Client(
// Don't print data sent to patch clients to the logs. The patch server
// protocol is fully understood and data logs for patch clients are generally
// more annoying than helpful at this point.
if ((this->channel.version == Version::PC_PATCH) || (this->channel.version == Version::BB_PATCH)) {
if ((server->get_state()->hide_download_commands) &&
((this->channel.version == Version::PC_PATCH) || (this->channel.version == Version::BB_PATCH))) {
this->channel.terminal_recv_color = TerminalFormat::END;
this->channel.terminal_send_color = TerminalFormat::END;
}