diff options
author | James Booth <boothj5@gmail.com> | 2015-06-21 21:07:57 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-06-21 21:07:57 +0100 |
commit | 446027b9505342c09f62f6d7a279c65a0d1db107 (patch) | |
tree | 2dde6c8ded47bb6880265e0b83a8aef25ad3e5ab /src/ui/console.c | |
parent | e72ddf5488a4cc2a39ed8037181a39d71768eff6 (diff) | |
download | profani-tty-446027b9505342c09f62f6d7a279c65a0d1db107.tar.gz |
Moved setting otr.warn -> enc.warn
Diffstat (limited to 'src/ui/console.c')
-rw-r--r-- | src/ui/console.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 1e20c964..ac18c7da 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -885,6 +885,16 @@ cons_winstidy_setting(void) } void +cons_encwarn_setting(void) +{ + if (prefs_get_boolean(PREF_ENC_WARN)) { + cons_show("Warn unencrypted (/encwarn) : ON"); + } else { + cons_show("Warn unencrypted (/encwarn) : OFF"); + } +} + +void cons_presence_setting(void) { if (prefs_get_boolean(PREF_PRESENCE)) @@ -1058,6 +1068,7 @@ cons_show_ui_prefs(void) cons_roster_setting(); cons_privileges_setting(); cons_titlebar_setting(); + cons_encwarn_setting(); cons_presence_setting(); cons_inpblock_setting(); @@ -1398,12 +1409,6 @@ cons_show_otr_prefs(void) cons_show("OTR policy (/otr policy) : %s", policy_value); prefs_free_string(policy_value); - if (prefs_get_boolean(PREF_OTR_WARN)) { - cons_show("Warn non-OTR (/otr warn) : ON"); - } else { - cons_show("Warn non-OTR (/otr warn) : OFF"); - } - char *log_value = prefs_get_string(PREF_OTR_LOG); if (strcmp(log_value, "on") == 0) { cons_show("OTR logging (/otr log) : ON"); |