make some text messages shorter
This commit is contained in:
+1
-4
@@ -96,11 +96,8 @@ static void check_is_leader(shared_ptr<Lobby> l, shared_ptr<Client> c) {
|
|||||||
static void server_command_server_info(shared_ptr<Client> c, const std::string&) {
|
static void server_command_server_info(shared_ptr<Client> c, const std::string&) {
|
||||||
auto s = c->require_server_state();
|
auto s = c->require_server_state();
|
||||||
string uptime_str = format_duration(now() - s->creation_time);
|
string uptime_str = format_duration(now() - s->creation_time);
|
||||||
string build_date = format_time(BUILD_TIMESTAMP);
|
|
||||||
send_text_message_printf(c,
|
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)",
|
"Uptime: $C6%s$C7\nLobbies: $C6%zu$C7\nClients: $C6%zu$C7(g) $C6%zu$C7(p)",
|
||||||
GIT_REVISION_HASH,
|
|
||||||
build_date.c_str(),
|
|
||||||
uptime_str.c_str(),
|
uptime_str.c_str(),
|
||||||
s->id_to_lobby.size(),
|
s->id_to_lobby.size(),
|
||||||
s->channel_to_client.size(),
|
s->channel_to_client.size(),
|
||||||
|
|||||||
@@ -2750,7 +2750,7 @@ static void on_enemy_exp_request_bb(shared_ptr<Client> c, uint8_t, uint8_t, void
|
|||||||
if (c->config.check_flag(Client::Flag::DEBUG_ENABLED)) {
|
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());
|
send_text_message_printf(c, "$C5E-%hX __MISSING__\n%s", cmd.enemy_index.load(), e.what());
|
||||||
} else {
|
} 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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user