about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-08 20:21:14 +0100
committerGitHub <noreply@github.com>2021-03-08 20:21:14 +0100
commita4ec8530a99b054d44a0a5f66562d0512c2ca0e2 (patch)
treeeebfa1ac60345f0de68804b8920fea0987d483b0
parentc8dba327605efb38e7e49ce91c736e5699f13be9 (diff)
parent2dd909babbd118fe815b1be9378eee1f2447fd05 (diff)
downloadprofani-tty-a4ec8530a99b054d44a0a5f66562d0512c2ca0e2.tar.gz
Merge pull request #1497 from xenrox/improve-doc
Cmd definitions: Add offline option to occupants
-rw-r--r--src/command/cmd_defs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c
index 4164eb47..49c9bf95 100644
--- a/src/command/cmd_defs.c
+++ b/src/command/cmd_defs.c
@@ -728,10 +728,10 @@ static struct cmd_t command_defs[] = {
               CMD_TAG_GROUPCHAT,
               CMD_TAG_UI)
       CMD_SYN(
-              "/occupants show|hide [jid]",
+              "/occupants show|hide [jid|offline]",
               "/occupants char <char>|none",
               "/occupants color on|off",
-              "/occupants default show|hide [jid]",
+              "/occupants default show|hide [jid|offline]",
               "/occupants size [<percent>]",
               "/occupants indent <indent>",
               "/occupants header char <char>|none",
@@ -747,8 +747,11 @@ static struct cmd_t command_defs[] = {
               { "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." },
+              { "show offline", "Show offline occupants panel in current room." },
+              { "hide offline", "Hide offline occupants panel in current room." },
               { "default show|hide", "Whether occupants are shown by default in new rooms." },
               { "default show|hide jid", "Whether occupants jids are shown by default in new rooms." },
+              { "default show|hide offline", "Whether offline occupants are shown by default in new rooms." },
               { "size <percent>", "Percentage of the screen taken by the occupants list in rooms (1-99)." },
               { "indent <indent>", "Indent contact line by <indent> spaces (0 to 10)." },
               { "header char <char>", "Prefix occupants headers with specified character." },