Moved setting otr.warn -> enc.warn
This commit is contained in:
@@ -884,6 +884,16 @@ cons_winstidy_setting(void)
|
||||
cons_show("Window Auto Tidy (/winstidy) : OFF");
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
@@ -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");
|
||||
|
||||
@@ -252,8 +252,7 @@ _show_privacy(ProfChatWin *chatwin)
|
||||
|
||||
switch (chatwin->enc_mode) {
|
||||
case PROF_ENC_NONE:
|
||||
// TODO generalise to PROF_ENC_WARN
|
||||
if (prefs_get_boolean(PREF_OTR_WARN)) {
|
||||
if (prefs_get_boolean(PREF_ENC_WARN)) {
|
||||
wprintw(win, " ");
|
||||
wattron(win, bracket_attrs);
|
||||
wprintw(win, "[");
|
||||
|
||||
@@ -288,6 +288,7 @@ void cons_privileges_setting(void);
|
||||
void cons_beep_setting(void);
|
||||
void cons_flash_setting(void);
|
||||
void cons_splash_setting(void);
|
||||
void cons_encwarn_setting(void);
|
||||
void cons_vercheck_setting(void);
|
||||
void cons_occupants_setting(void);
|
||||
void cons_roster_setting(void);
|
||||
|
||||
Reference in New Issue
Block a user