0
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-07-26 12:14:28 -04:00

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

@ -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 <account> clientid) : %s", account->client);
cons_show("Client name (/account set <account> clientid) : %s", account->client);
} 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) {
cons_show("Max sessions alarm (/account set <account> session_alarm) : %s", account->max_sessions);