Add /occupants color command

`/occupants color on|off` to enable or disable XEP-0392 also for the
MUC occupants.

Regards
https://github.com/profanity-im/profanity/issues/1191
This commit is contained in:
Michael Vetter
2019-12-19 19:14:59 +01:00
parent 6d82020a66
commit 808850c6f5
7 changed files with 45 additions and 6 deletions

View File

@@ -1991,9 +1991,15 @@ cons_color_setting(void)
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) : ON");
} else {
cons_show("Consistent color generation in roster (/roster) : OFF");
cons_show("Consistent color generation in roster (/roster) : OFF");
}
if (prefs_get_boolean(PREF_OCCUPANTS_COLOR_NICK)) {
cons_show("Consistent color generation for occupants (/occupants) : ON");
} else {
cons_show("Consistent color generation for occupants (/occupants) : OFF");
}
}