From e958753a09f07aa34ad1351e50e1f4cb98c0a061 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 5 Aug 2022 01:30:37 -0700 Subject: [PATCH] add leader tag in proxy $li results --- src/ChatCommands.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index ba564076..6988a00c 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -124,8 +124,10 @@ static void server_command_lobby_info(shared_ptr, shared_ptr static void proxy_command_lobby_info(shared_ptr, ProxyServer::LinkedSession& session, const std::u16string&) { - string msg = string_printf("$C7GC: $C6%" PRIu32 "\n$C7Client ID: $C6%zu", - session.remote_guild_card_number, session.lobby_client_id); + string msg = string_printf("$C7GC: $C6%" PRIu32 "\n$C7Client ID: $C6%zu%s", + session.remote_guild_card_number, + session.lobby_client_id, + (session.leader_client_id == session.lobby_client_id) ? " (L)" : ""); vector cheats_tokens; if (session.switch_assist) {