Add config option to turn off chat logging

When LogChat is disabled, using the `say` command in the console will
trigger a "chat message sent!" reply, as UX feedback.
This commit is contained in:
Lion Kortlepel
2022-02-06 21:37:51 +01:00
parent fdb7c9ce71
commit 17c571811a
4 changed files with 20 additions and 9 deletions

View File

@@ -199,6 +199,9 @@ void TConsole::Command_Say(const std::string& cmd) {
if (cmd.size() > 3) {
auto Message = cmd.substr(4);
LuaAPI::MP::SendChatMessage(-1, Message);
if (!Application::Settings.LogChat) {
Application::Console().WriteRaw("Chat message sent!");
}
}
}