Print actual client id in /privacy overview

Instead of just saying that we sent the "default".
This commit is contained in:
Michael Vetter
2023-07-25 21:03:01 +02:00
parent 22b1d14b67
commit 5fb3453808

View File

@@ -2929,9 +2929,11 @@ cons_privacy_setting(void)
} }
if (prefs_get_boolean(PREF_REVEAL_OS)) { 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 { } 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) { if (connection_get_status() == JABBER_CONNECTED) {
@@ -2941,7 +2943,8 @@ cons_privacy_setting(void)
if (account->client) { if (account->client) {
cons_show("Client name (/account set <account> clientid) : %s", account->client); cons_show("Client name (/account set <account> clientid) : %s", account->client);
} else { } else {
cons_show("Client name (/account set <account> clientid) : (default)"); auto_gchar gchar* prof_version = prof_get_version();
cons_show("Client name (/account set <account> clientid) : Profanity %s", prof_version);
} }
if (account->max_sessions > 0) { if (account->max_sessions > 0) {
cons_show("Max sessions alarm (/account set <account> session_alarm) : %s", account->max_sessions); cons_show("Max sessions alarm (/account set <account> session_alarm) : %s", account->max_sessions);