about summary refs log tree commit diff stats
path: root/src/command/cmd_defs.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-12-19 19:14:59 +0100
committerMichael Vetter <jubalh@iodoru.org>2019-12-19 19:14:59 +0100
commit808850c6f5c85b0e173e922b9979ca3a09b4dc31 (patch)
treeef37d004827224fe8662b3b850d21888a950a230 /src/command/cmd_defs.c
parent6d82020a66505e9c58b26091684e5f78ac71d210 (diff)
downloadprofani-tty-808850c6f5c85b0e173e922b9979ca3a09b4dc31.tar.gz
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
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r--src/command/cmd_defs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c
index 38547bbd..17b9d6cb 100644
--- a/src/command/cmd_defs.c
+++ b/src/command/cmd_defs.c
@@ -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." },