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

@@ -714,6 +714,7 @@ static struct cmd_t command_defs[] =
CMD_SYN(
"/occupants show|hide [jid]",
"/occupants char <char>|none",
"/occupants color on|off",
"/occupants default show|hide [jid]",
"/occupants size [<percent>]",
"/occupants indent <indent>",
@@ -725,6 +726,8 @@ static struct cmd_t command_defs[] =
{ "show", "Show the occupants panel in current room." },
{ "char <char>", "Prefix occupants with specified character." },
{ "char none", "Remove occupants character prefix." },
{ "color on", "Enable generated color names (XEP-0392) for occupants" },
{ "color off", "Disable generated color names (XEP-0392) for occupants" },
{ "hide", "Hide the occupants panel in current room." },
{ "show jid", "Show jid in the occupants panel in current room." },
{ "hide jid", "Hide jid in the occupants panel in current room." },