Use parse_args_with_freetext() for /correct
This commit partly reverts
8f37afcd37
Which was using a wrong approach to achieve this.
It changed parse_args() to have a -1 for infinite parameters.
But actually parse_args_with_freetext() should have been used exactly
for this behaviour.
Discovered when checking for
https://github.com/profanity-im/profanity/issues/1404
This commit is contained in:
@@ -2443,7 +2443,7 @@ static struct cmd_t command_defs[] = {
|
||||
},
|
||||
|
||||
{ "/correct",
|
||||
parse_args, 1, -1, NULL,
|
||||
parse_args_with_freetext, 1, 1, NULL,
|
||||
CMD_NOSUBFUNCS
|
||||
CMD_MAINFUNC(cmd_correct)
|
||||
CMD_TAGS(
|
||||
|
||||
Reference in New Issue
Block a user