diff options
author | James Booth <boothj5@gmail.com> | 2015-10-14 00:58:33 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-10-14 00:58:33 +0100 |
commit | 85764ddb5314e3e52c515f245bec2190c6c68823 (patch) | |
tree | 2315d1b45cdd9ed623a7adac2ee2b1ceda078fbf | |
parent | 93358d5e621d8cde8c6c94b1c838b023293517b3 (diff) | |
download | profani-tty-85764ddb5314e3e52c515f245bec2190c6c68823.tar.gz |
Added TLS show to UI preferences
-rw-r--r-- | src/command/command.c | 3 | ||||
-rw-r--r-- | src/ui/console.c | 11 | ||||
-rw-r--r-- | src/ui/ui.h | 1 |
3 files changed, 14 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c index e6e518fe..def2815b 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -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", diff --git a/src/ui/console.c b/src/ui/console.c index 820684c1..319e451d 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -942,6 +942,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) { if (prefs_get_boolean(PREF_PRESENCE)) @@ -1147,6 +1157,7 @@ cons_show_ui_prefs(void) cons_encwarn_setting(); cons_presence_setting(); cons_inpblock_setting(); + cons_tlsshow_setting(); cons_alert(); } diff --git a/src/ui/ui.h b/src/ui/ui.h index 93fde07b..add38fb4 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -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); |