mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Added TLS show to UI preferences
This commit is contained in:
parent
93358d5e62
commit
85764ddb53
@ -191,7 +191,8 @@ static struct cmd_t command_defs[] =
|
||||
{ "/tls",
|
||||
cmd_tls, parse_args, 1, 3, NULL,
|
||||
CMD_TAGS(
|
||||
CMD_TAG_CONNECTION)
|
||||
CMD_TAG_CONNECTION,
|
||||
CMD_TAG_UI)
|
||||
CMD_SYN(
|
||||
"/tls allow",
|
||||
"/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
|
||||
cons_presence_setting(void)
|
||||
{
|
||||
@ -1147,6 +1157,7 @@ cons_show_ui_prefs(void)
|
||||
cons_encwarn_setting();
|
||||
cons_presence_setting();
|
||||
cons_inpblock_setting();
|
||||
cons_tlsshow_setting();
|
||||
|
||||
cons_alert();
|
||||
}
|
||||
|
@ -304,6 +304,7 @@ void cons_beep_setting(void);
|
||||
void cons_flash_setting(void);
|
||||
void cons_splash_setting(void);
|
||||
void cons_encwarn_setting(void);
|
||||
void cons_tlsshow_setting(void);
|
||||
void cons_vercheck_setting(void);
|
||||
void cons_occupants_setting(void);
|
||||
void cons_roster_setting(void);
|
||||
|
Loading…
Reference in New Issue
Block a user