From 065c11ac9042a9b369a2f99399dd29ea3a14f0e7 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sat, 7 Oct 2023 21:50:54 -0700 Subject: [PATCH] only show leader change if player notifs are on --- src/ProxyCommands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProxyCommands.cc b/src/ProxyCommands.cc index 682de4aa..e98266e6 100644 --- a/src/ProxyCommands.cc +++ b/src/ProxyCommands.cc @@ -1282,7 +1282,7 @@ static void update_leader_id(shared_ptr ses, uint8_t if (ses->leader_client_id != leader_id) { ses->leader_client_id = leader_id; ses->log.info("Changed room leader to %zu", ses->leader_client_id); - if (ses->leader_client_id == ses->lobby_client_id) { + if (ses->options.enable_player_notifications && (ses->leader_client_id == ses->lobby_client_id)) { send_text_message(ses->client_channel, u"$C6You are now the leader"); } }