mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Add cons_privacy_setting() to print privacy setting infos
This commit is contained in:
parent
69d8c1f96e
commit
feba4b8263
@ -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)
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -1160,6 +1160,11 @@ cons_strophe_setting(void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
cons_privacy_setting(void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_bookmarks_ignore(gchar** list, gsize len)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user