mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-02 08:56:21 +00:00
Print actual client id in /privacy overview
Instead of just saying that we sent the "default".
This commit is contained in:
@@ -2915,23 +2915,25 @@ cons_strophe_setting(void)
|
|||||||
void
|
void
|
||||||
cons_privacy_setting(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)) {
|
if (prefs_get_boolean(PREF_CHLOG)) {
|
||||||
cons_show("Chat logging (/logging chat) : ON");
|
cons_show("Chat logging (/logging chat) : ON");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Chat logging (/logging chat) : OFF");
|
cons_show("Chat logging (/logging chat) : OFF");
|
||||||
}
|
}
|
||||||
if (prefs_get_boolean(PREF_HISTORY)) {
|
if (prefs_get_boolean(PREF_HISTORY)) {
|
||||||
cons_show("Chat history (/history) : ON");
|
cons_show("Chat history (/history) : ON");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Chat history (/history) : OFF");
|
cons_show("Chat history (/history) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
@@ -2939,9 +2941,10 @@ cons_privacy_setting(void)
|
|||||||
ProfAccount* account = accounts_get_account(account_name);
|
ProfAccount* account = accounts_get_account(account_name);
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user