From 6ffeda93a7d79fa5ad367158d252693942c7cdb9 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sat, 4 Feb 2023 19:52:38 -0800 Subject: [PATCH] make $li output consistent on proxy server --- src/ChatCommands.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index d147c7f4..3ccbe982 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -154,12 +154,11 @@ static void proxy_command_lobby_info(shared_ptr, session.remote_guild_card_number); for (size_t z = 0; z < session.lobby_players.size(); z++) { - if (session.lobby_players[z].guild_card_number == 0) { - continue; - } bool is_self = z == session.lobby_client_id; bool is_leader = z == session.leader_client_id; - if (is_self && is_leader) { + if (session.lobby_players[z].guild_card_number == 0) { + msg += string_printf("$C0%zX$C7", z); + } else if (is_self && is_leader) { msg += string_printf("$C6%zX$C7", z); } else if (is_self) { msg += string_printf("$C2%zX$C7", z);