XEP-0092: Add configuration option to choose whether to send OS name

`/os on|off` now let's one choose whether to include the OS name once
`/software` (XEP-0092) is ran on us.
This commit is contained in:
Michael Vetter
2020-01-24 19:27:42 +01:00
parent 3c0647ec70
commit 4bc82a5318
6 changed files with 36 additions and 1 deletions

View File

@@ -2011,6 +2011,16 @@ cons_color_setting(void)
}
}
void
cons_os_setting(void)
{
if (prefs_get_boolean(PREF_REVEAL_OS)) {
cons_show("Reveal OS name when asked for software version (XEP-0092) (/os) : ON");
} else {
cons_show("Reveal OS name when asked for software version (XEP-0092) (/os) : OFF");
}
}
void
cons_show_connection_prefs(void)
{

View File

@@ -318,6 +318,7 @@ void cons_inpblock_setting(void);
void cons_statusbar_setting(void);
void cons_winpos_setting(void);
void cons_color_setting(void);
void cons_os_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);