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

@@ -1712,6 +1712,7 @@ _get_group(preference_t pref)
case PREF_CONSOLE_CHAT:
case PREF_COLOR_NICK:
case PREF_ROSTER_COLOR_NICK:
case PREF_OCCUPANTS_COLOR_NICK:
case PREF_STATUSBAR_SHOW_NAME:
case PREF_STATUSBAR_SHOW_NUMBER:
case PREF_STATUSBAR_SELF:
@@ -1975,6 +1976,8 @@ _get_key(preference_t pref)
return "color.nick";
case PREF_ROSTER_COLOR_NICK:
return "color.roster.nick";
case PREF_OCCUPANTS_COLOR_NICK:
return "color.occupants.nick";
case PREF_BOOKMARK_INVITE:
return "bookmark.invite";
case PREF_PLUGINS_SOURCEPATH:

View File

@@ -145,6 +145,7 @@ typedef enum {
PREF_CONSOLE_CHAT,
PREF_COLOR_NICK,
PREF_ROSTER_COLOR_NICK,
PREF_OCCUPANTS_COLOR_NICK,
PREF_BOOKMARK_INVITE,
PREF_PLUGINS_SOURCEPATH,
PREF_ROOM_LIST_CACHE,