From f548fc04e2500f3b584567c5999c914579fff01d Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 11 Feb 2024 10:54:16 -0800 Subject: [PATCH] make some text messages shorter --- src/ChatCommands.cc | 5 +---- src/ReceiveSubcommands.cc | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index 680dc285..4d82b1d9 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -96,11 +96,8 @@ static void check_is_leader(shared_ptr l, shared_ptr c) { static void server_command_server_info(shared_ptr c, const std::string&) { auto s = c->require_server_state(); string uptime_str = format_duration(now() - s->creation_time); - string build_date = format_time(BUILD_TIMESTAMP); send_text_message_printf(c, - "Revision: $C6%s$C7\n$C6%s$C7\nUptime: $C6%s$C7\nLobbies: $C6%zu$C7\nClients: $C6%zu$C7(g) $C6%zu$C7(p)", - GIT_REVISION_HASH, - build_date.c_str(), + "Uptime: $C6%s$C7\nLobbies: $C6%zu$C7\nClients: $C6%zu$C7(g) $C6%zu$C7(p)", uptime_str.c_str(), s->id_to_lobby.size(), s->channel_to_client.size(), diff --git a/src/ReceiveSubcommands.cc b/src/ReceiveSubcommands.cc index fb4818fc..5d3a3609 100644 --- a/src/ReceiveSubcommands.cc +++ b/src/ReceiveSubcommands.cc @@ -2750,7 +2750,7 @@ static void on_enemy_exp_request_bb(shared_ptr c, uint8_t, uint8_t, void if (c->config.check_flag(Client::Flag::DEBUG_ENABLED)) { send_text_message_printf(c, "$C5E-%hX __MISSING__\n%s", cmd.enemy_index.load(), e.what()); } else { - send_text_message_printf(c, "$C4Unknown enemy type killed:\n%s", e.what()); + send_text_message_printf(c, "$C4Unknown enemy killed:\n%s", e.what()); } }