mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 20:36:22 +00:00
Added TLS show to UI preferences
This commit is contained in:
@@ -191,7 +191,8 @@ static struct cmd_t command_defs[] =
|
|||||||
{ "/tls",
|
{ "/tls",
|
||||||
cmd_tls, parse_args, 1, 3, NULL,
|
cmd_tls, parse_args, 1, 3, NULL,
|
||||||
CMD_TAGS(
|
CMD_TAGS(
|
||||||
CMD_TAG_CONNECTION)
|
CMD_TAG_CONNECTION,
|
||||||
|
CMD_TAG_UI)
|
||||||
CMD_SYN(
|
CMD_SYN(
|
||||||
"/tls allow",
|
"/tls allow",
|
||||||
"/tls always",
|
"/tls always",
|
||||||
|
|||||||
@@ -941,6 +941,16 @@ cons_encwarn_setting(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
cons_tlsshow_setting(void)
|
||||||
|
{
|
||||||
|
if (prefs_get_boolean(PREF_TLS_SHOW)) {
|
||||||
|
cons_show("TLS show (/tls) : ON");
|
||||||
|
} else {
|
||||||
|
cons_show("TLS show (/tls) : OFF");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_presence_setting(void)
|
cons_presence_setting(void)
|
||||||
{
|
{
|
||||||
@@ -1147,6 +1157,7 @@ cons_show_ui_prefs(void)
|
|||||||
cons_encwarn_setting();
|
cons_encwarn_setting();
|
||||||
cons_presence_setting();
|
cons_presence_setting();
|
||||||
cons_inpblock_setting();
|
cons_inpblock_setting();
|
||||||
|
cons_tlsshow_setting();
|
||||||
|
|
||||||
cons_alert();
|
cons_alert();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -304,6 +304,7 @@ void cons_beep_setting(void);
|
|||||||
void cons_flash_setting(void);
|
void cons_flash_setting(void);
|
||||||
void cons_splash_setting(void);
|
void cons_splash_setting(void);
|
||||||
void cons_encwarn_setting(void);
|
void cons_encwarn_setting(void);
|
||||||
|
void cons_tlsshow_setting(void);
|
||||||
void cons_vercheck_setting(void);
|
void cons_vercheck_setting(void);
|
||||||
void cons_occupants_setting(void);
|
void cons_occupants_setting(void);
|
||||||
void cons_roster_setting(void);
|
void cons_roster_setting(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user