1
0
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:
James Booth 2015-10-14 00:58:33 +01:00
parent 93358d5e62
commit 85764ddb53
3 changed files with 14 additions and 1 deletions

View File

@ -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",

View File

@ -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();
} }

View File

@ -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);