aboutsummaryrefslogtreecommitdiffstats
path: root/slack/commands.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-15 16:38:24 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 13:01:40 +0100
commit24e1361628b9f3b4d94347608e3150a99021f092 (patch)
tree5b12f1bda7050052beea0f0d29eb2f07238c9d59 /slack/commands.py
parent3f5a4bc0427c8f292fd108c2ad6cc443f5df24f6 (diff)
downloadwee-slack-24e1361628b9f3b4d94347608e3150a99021f092.tar.gz
Don't require any arguments for `/slack join`
It will use the current buffer if no arguments are given.
Diffstat (limited to 'slack/commands.py')
-rw-r--r--slack/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/commands.py b/slack/commands.py
index 8f68045..40c2554 100644
--- a/slack/commands.py
+++ b/slack/commands.py
@@ -380,7 +380,7 @@ def get_conversation_from_args(buffer: str, args: List[str], options: Options):
print_error(f'Conversation "{conversation_name}" not found')
-@weechat_command("", min_args=1)
+@weechat_command("")
def command_slack_join(buffer: str, args: List[str], options: Options):
conversation = get_conversation_from_args(buffer, args, options)
if conversation is not None: