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-11-07 10:25:31 +0100
committerMichael Vetter <jubalh@iodoru.org>2019-11-07 10:25:31 +0100
commitb846c4970bb8054ca2bacb8cebdbe4d9302f4cb6 (patch)
tree39f3a5d2411ea95946a8a120a732b94a741314ef /src/command/cmd_defs.c
parentecfa2d0c1b96c4fbd8f9312c7afc2efae08568ed (diff)
downloadprofani-tty-b846c4970bb8054ca2bacb8cebdbe4d9302f4cb6.tar.gz
Fix setting of status message
Seems this actually never worked.
Now it does.

`/status set online "This is my text"`
`/status set away bye`
`/status set away`
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r--src/command/cmd_defs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c
index 2f103d22..0947b514 100644
--- a/src/command/cmd_defs.c
+++ b/src/command/cmd_defs.c
@@ -516,14 +516,14 @@ static struct cmd_t command_defs[] =
             CMD_TAG_CHAT,
             CMD_TAG_GROUPCHAT)
         CMD_SYN(
-            "/status set <state> [<message>]",
+            "/status set <state> [\"<message>\"]",
             "/status get <contact>|<nick>")
         CMD_DESC(
             "/status get: Find out a contact, or room members presence information. "
             "/status set: set own status.")
         CMD_ARGS(
             { "<state>",   "Own status. Possible values: chat, online, away, dnd, xa" },
-            { "<message>", "Optional message to use with the status." },
+            { "<message>", "Optional message to use with the status. Needs quotation marks if it's more than one word." },
             { "<contact>", "The contact who's presence you which to see." },
             { "<nick>",    "If in a chat room, the occupant who's presence you wish to see." })
         CMD_EXAMPLES(