From 24e1361628b9f3b4d94347608e3150a99021f092 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Thu, 15 Feb 2024 16:38:24 +0100 Subject: Don't require any arguments for `/slack join` It will use the current buffer if no arguments are given. --- slack/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit