aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/Commands.md16
-rw-r--r--wee_slack.py8
2 files changed, 17 insertions, 7 deletions
diff --git a/docs/Commands.md b/docs/Commands.md
index 9817f64..07e9941 100644
--- a/docs/Commands.md
+++ b/docs/Commands.md
@@ -111,11 +111,21 @@ Reload the history in the current channel.
### reply
```
-/reply <count/message_id> <text>
+/reply [-alsochannel] [<count/message_id>] <message>
```
-Reply in a thread on the message. Specify either the message id
-or a count upwards to the message from the last message.
+
+When in a channel buffer:
+/reply [-alsochannel] <count/message_id> <message>
+Reply in a thread on the message. Specify either the message id or a count
+upwards to the message from the last message.
+
+When in a thread buffer:
+/reply [-alsochannel] <message>
+Reply to the current thread. This can be used to send the reply to the
+rest of the channel.
+
+In either case, -alsochannel also sends the reply to the parent channel.
### showmuted
diff --git a/wee_slack.py b/wee_slack.py
index 9471674..b6494f1 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -4040,15 +4040,15 @@ command_thread.completion = '%(threads)'
@utf8_decode
def command_reply(data, current_buffer, args):
"""
- /reply [-alsochannel] [<count/message_id>] <text>
+ /reply [-alsochannel] [<count/message_id>] <message>
When in a channel buffer:
- /reply [-alsochannel] <count/message_id> <text>
+ /reply [-alsochannel] <count/message_id> <message>
Reply in a thread on the message. Specify either the message id or a count
upwards to the message from the last message.
When in a thread buffer:
- /reply [-alsochannel] <text>
+ /reply [-alsochannel] <message>
Reply to the current thread. This can be used to send the reply to the
rest of the channel.
@@ -4069,7 +4069,7 @@ def command_reply(data, current_buffer, args):
try:
msg_id, text = args.split(None, 1)
except ValueError:
- w.prnt('', 'Usage (when in a channel buffer): /reply [-alsochannel] <count/id> <message>')
+ w.prnt('', 'Usage (when in a channel buffer): /reply [-alsochannel] <count/message_id> <message>')
return w.WEECHAT_RC_OK_EAT
msg = get_msg_from_id(channel, msg_id)