mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Adjust /color configuration output
Fix https://github.com/profanity-im/profanity/issues/1243
This commit is contained in:
parent
fdd6897eee
commit
abd8e3d6c5
@ -1974,32 +1974,32 @@ cons_color_setting(void)
|
|||||||
char *color_pref = prefs_get_string(PREF_COLOR_NICK);
|
char *color_pref = prefs_get_string(PREF_COLOR_NICK);
|
||||||
|
|
||||||
if (!color_pref) {
|
if (!color_pref) {
|
||||||
cons_show("Consistent color generation for nicks (/color) : OFF");
|
cons_show("Consistent color generation for nicks (/color) : OFF");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(color_pref, "true") == 0) {
|
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) {
|
} 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) {
|
} 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 {
|
} else {
|
||||||
cons_show("Consistent color generation for nicks (/color) : OFF");
|
cons_show("Consistent color generation for nicks (/color) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
prefs_free_string(color_pref);
|
prefs_free_string(color_pref);
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_COLOR_NICK)) {
|
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 {
|
} 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)) {
|
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 {
|
} else {
|
||||||
cons_show("Consistent color generation for occupants (/occupants) : OFF");
|
cons_show("Consistent color generation for occupants (/occupants color) : OFF");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user