diff --git a/src/ui/console.c b/src/ui/console.c index 91b499f7..28381ba9 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -1973,6 +1973,11 @@ cons_color_setting(void) { char *color_pref = prefs_get_string(PREF_COLOR_NICK); + if (!color_pref) { + cons_show("Consistent color generation for nicks (/color) : OFF"); + return; + } + if (strcmp(color_pref, "true") == 0) { cons_show("Consistent color generation for nicks (/color) : ON"); } else if (strcmp(color_pref, "redgreen") == 0) {