about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c13
-rw-r--r--src/ui/window.c4
2 files changed, 14 insertions, 3 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 3906da5c..91b499f7 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1971,10 +1971,19 @@ cons_autoping_setting(void)
 void
 cons_color_setting(void)
 {
-    if (prefs_get_boolean(PREF_COLOR_NICK))
+    char *color_pref = prefs_get_string(PREF_COLOR_NICK);
+
+    if (strcmp(color_pref, "true") == 0) {
         cons_show("Consistent color generation for nicks (/color)               : ON");
-    else
+    } else if (strcmp(color_pref, "redgreen") == 0) {
+        cons_show("Consistent color generation for nicks (/color)               : REDGREEN");
+    } else if (strcmp(color_pref, "blue") == 0) {
+        cons_show("Consistent color generation for nicks (/color)               : BLUE");
+    } else {
         cons_show("Consistent color generation for nicks (/color)               : OFF");
+    }
+
+    prefs_free_string(color_pref);
 }
 
 void
diff --git a/src/ui/window.c b/src/ui/window.c
index 47230150..2a76496c 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1453,9 +1453,11 @@ _win_print(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim
             colour = theme_attrs(THEME_THEM);
         }
 
-        if (prefs_get_boolean(PREF_COLOR_NICK)) {
+        char *color_pref = prefs_get_string(PREF_COLOR_NICK);
+        if (color_pref != NULL && (strcmp(color_pref, "false") != 0)) {
             colour = theme_hash_attrs(from);
         }
+        prefs_free_string(color_pref);
 
         if (flags & NO_COLOUR_FROM) {
             colour = 0;