1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00

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

@ -2722,7 +2722,7 @@ static const struct cmd_t command_defs[] = {
},
{ CMD_PREAMBLE("/privacy",
parse_args, 2, 3, NULL)
parse_args, 2, 3, &cons_privacy_setting)
CMD_MAINFUNC(cmd_privacy)
CMD_TAGS(
CMD_TAG_CHAT)

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");
}
}

View File

@ -342,6 +342,7 @@ void cons_mam_setting(void);
void cons_silence_setting(void);
void cons_mood_setting(void);
void cons_strophe_setting(void);
void cons_privacy_setting(void);
void cons_show_contact_online(PContact contact, Resource* resource, GDateTime* last_activity);
void cons_show_contact_offline(PContact contact, char* resource, char* status);
void cons_theme_properties(void);

View File

@ -1160,6 +1160,11 @@ cons_strophe_setting(void)
{
}
void
cons_privacy_setting(void)
{
}
void
cons_show_bookmarks_ignore(gchar** list, gsize len)
{