From 88b48000f82492d3de2fd4fd6ac4420637ebc449 Mon Sep 17 00:00:00 2001 From: "jabber.developer2" Date: Tue, 6 Jan 2026 17:22:53 +0300 Subject: [PATCH] fix(cmd): increase /connect max args from 7 to 9 The /connect command can take: account + server + port

+ tls + auth which totals 9 arguments, not 7. This fixes argument parsing for full command usage. --- src/command/cmd_defs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index ab779075..ec1e58b3 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -139,8 +139,9 @@ static const struct cmd_t command_defs[] = { "Show version and license information.") }, + // Max args: account + server + port

+ tls + auth = 9 { CMD_PREAMBLE("/connect", - parse_args, 0, 7, NULL) + parse_args, 0, 9, NULL) CMD_MAINFUNC(cmd_connect) CMD_TAGS( CMD_TAG_CONNECTION) -- 2.49.1