1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Adjust /color configuration output

Fix https://github.com/profanity-im/profanity/issues/1243
This commit is contained in:
Michael Vetter 2019-12-20 10:05:58 +01:00
parent fdd6897eee
commit abd8e3d6c5

View File

@ -1974,32 +1974,32 @@ 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");
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");
cons_show("Consistent color generation for nicks (/color) : ON");
} else if (strcmp(color_pref, "redgreen") == 0) {
cons_show("Consistent color generation for nicks (/color) : REDGREEN");
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");
cons_show("Consistent color generation for nicks (/color) : BLUE");
} else {
cons_show("Consistent color generation for nicks (/color) : OFF");
cons_show("Consistent color generation for nicks (/color) : OFF");
}
prefs_free_string(color_pref);
if (prefs_get_boolean(PREF_ROSTER_COLOR_NICK)) {
cons_show("Consistent color generation in roster (/roster) : ON");
cons_show("Consistent color generation in roster (/roster color) : ON");
} else {
cons_show("Consistent color generation in roster (/roster) : OFF");
cons_show("Consistent color generation in roster (/roster color) : OFF");
}
if (prefs_get_boolean(PREF_OCCUPANTS_COLOR_NICK)) {
cons_show("Consistent color generation for occupants (/occupants) : ON");
cons_show("Consistent color generation for occupants (/occupants color) : ON");
} else {
cons_show("Consistent color generation for occupants (/occupants) : OFF");
cons_show("Consistent color generation for occupants (/occupants color) : OFF");
}
}