aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-05 19:25:17 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-05 19:25:17 +0200
commitf376dd8652243d3dc24bd6642e18aa054f6f9e54 (patch)
treefd85b2deb31c57e9451e4ce4f1f81243c9ed4932 /wee_slack.py
parent83f2070138971a87eb7114409c8f9672f5f4ad2b (diff)
downloadwee-slack-f376dd8652243d3dc24bd6642e18aa054f6f9e54.tar.gz
Don't prevent default completion in /reply and /slack talk
/reply takes a message, so default completion should work there. /slack talk only takes one argument with a comma separated list of nicks, so technically preventing default completion is correct for that. However, until we support completing multiple nicks separated by comma, preventing completion of nicks as additional arguments makes it inconvenient to use.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index b69c016..8ffcda5 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -4119,7 +4119,7 @@ def command_talk(data, current_buffer, args):
return w.WEECHAT_RC_ERROR
return join_query_command_cb(data, current_buffer, '/query ' + args)
-command_talk.completion = '%(nicks) %-'
+command_talk.completion = '%(nicks)'
@slack_buffer_or_ignore
@@ -4326,7 +4326,7 @@ def command_reply(data, current_buffer, args):
channel.send_message(text, request_dict_ext={'thread_ts': parent_id, 'reply_broadcast': broadcast})
return w.WEECHAT_RC_OK_EAT
-command_reply.completion = '%(threads)|-alsochannel %(threads) %-'
+command_reply.completion = '%(threads)|-alsochannel %(threads)'
@slack_buffer_required