From 5fb34538087036e2638f3c905c5ac89dc298a018 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 25 Jul 2023 21:03:01 +0200 Subject: [PATCH] Print actual client id in /privacy overview Instead of just saying that we sent the "default". --- src/ui/console.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/ui/console.c b/src/ui/console.c index b0020077..d30f1a34 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -2915,23 +2915,25 @@ cons_strophe_setting(void) void cons_privacy_setting(void) { - cons_show("Database logging : %s", prefs_get_string(PREF_DBLOG)); + cons_show("Database logging : %s", prefs_get_string(PREF_DBLOG)); if (prefs_get_boolean(PREF_CHLOG)) { - cons_show("Chat logging (/logging chat) : ON"); + cons_show("Chat logging (/logging chat) : ON"); } else { - cons_show("Chat logging (/logging chat) : OFF"); + cons_show("Chat logging (/logging chat) : OFF"); } if (prefs_get_boolean(PREF_HISTORY)) { - cons_show("Chat history (/history) : ON"); + cons_show("Chat history (/history) : ON"); } else { - cons_show("Chat history (/history) : OFF"); + cons_show("Chat history (/history) : OFF"); } if (prefs_get_boolean(PREF_REVEAL_OS)) { - cons_show("Reveal OS name when asked for software version (XEP-0092) (/privacy os) : ON"); + cons_show("Reveal OS name when asked for software"); + cons_show("version (XEP-0092) (/privacy os) : ON"); } else { - cons_show("Reveal OS name when asked for software version (XEP-0092) (/privacy os) : OFF"); + cons_show("Reveal OS name when asked for software"); + cons_show("version (XEP-0092) (/privacy os) : OFF"); } if (connection_get_status() == JABBER_CONNECTED) { @@ -2939,9 +2941,10 @@ cons_privacy_setting(void) ProfAccount* account = accounts_get_account(account_name); if (account->client) { - cons_show("Client name (/account set clientid) : %s", account->client); + cons_show("Client name (/account set clientid) : %s", account->client); } else { - cons_show("Client name (/account set clientid) : (default)"); + auto_gchar gchar* prof_version = prof_get_version(); + cons_show("Client name (/account set clientid) : Profanity %s", prof_version); } if (account->max_sessions > 0) { cons_show("Max sessions alarm (/account set session_alarm) : %s", account->max_sessions);