Add cons_privacy_setting() to print privacy setting infos

This commit is contained in:
Michael Vetter
2023-07-24 18:25:34 +02:00
parent 69d8c1f96e
commit feba4b8263
4 changed files with 24 additions and 1 deletions

View File

@@ -2940,3 +2940,20 @@ cons_strophe_setting(void)
cons_show("XEP-0198 Stream-Management : %s", sm_setting);
cons_show("libstrophe Verbosity : %s", prefs_get_string(PREF_STROPHE_VERBOSITY));
}
void
cons_privacy_setting(void)
{
cons_show("Database logging : %s", prefs_get_string(PREF_DBLOG));
if (prefs_get_boolean(PREF_CHLOG)) {
cons_show("Chat logging (/logging chat) : ON");
} else {
cons_show("Chat logging (/logging chat) : OFF");
}
if (prefs_get_boolean(PREF_HISTORY)) {
cons_show("Chat history (/history) : ON");
} else {
cons_show("Chat history (/history) : OFF");
}
}