From 85125a5569d14aac42b890134aaa6bec7ac54287 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 22 Oct 2023 09:42:41 -0700 Subject: [PATCH] add override section ID name to confirmation message --- src/ChatCommands.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index 84572734..b6e6c13f 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -662,7 +662,8 @@ static void server_command_secid(shared_ptr c, const std::u16string& arg send_text_message(c, u"$C6Invalid section ID"); } else { c->options.override_section_id = new_secid; - send_text_message(c, u"$C6Override section ID\nset"); + string name = name_for_section_id(new_secid); + send_text_message_printf(c, "$C6Override section ID\nset to %s", name.c_str()); } } } @@ -677,7 +678,8 @@ static void proxy_command_secid(shared_ptr ses, cons send_text_message(ses->client_channel, u"$C6Invalid section ID"); } else { ses->options.override_section_id = new_secid; - send_text_message(ses->client_channel, u"$C6Override section ID\nset"); + string name = name_for_section_id(new_secid); + send_text_message_printf(ses->client_channel, "$C6Override section ID\nset to %s", name.c_str()); } } }