From 85764ddb5314e3e52c515f245bec2190c6c68823 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 14 Oct 2015 00:58:33 +0100 Subject: [PATCH] Added TLS show to UI preferences --- src/command/command.c | 3 ++- src/ui/console.c | 11 +++++++++++ src/ui/ui.h | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) 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 @@ -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(); } 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);