mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 21:16:22 +00:00
fix(cmd): increase /connect max args from 7 to 9
The /connect command can take: account + server <s> + port <p> + tls <t> + auth <a> which totals 9 arguments, not 7. This fixes argument parsing for full command usage.
This commit is contained in:
@@ -139,8 +139,9 @@ static const struct cmd_t command_defs[] = {
|
|||||||
"Show version and license information.")
|
"Show version and license information.")
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Max args: account + server <s> + port <p> + tls <t> + auth <a> = 9
|
||||||
{ CMD_PREAMBLE("/connect",
|
{ CMD_PREAMBLE("/connect",
|
||||||
parse_args, 0, 7, NULL)
|
parse_args, 0, 9, NULL)
|
||||||
CMD_MAINFUNC(cmd_connect)
|
CMD_MAINFUNC(cmd_connect)
|
||||||
CMD_TAGS(
|
CMD_TAGS(
|
||||||
CMD_TAG_CONNECTION)
|
CMD_TAG_CONNECTION)
|
||||||
|
|||||||
Reference in New Issue
Block a user