mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 23:26:21 +00:00
xep-0308: Make /correct work without quotation marks
Now we can specify an unlimited amount of arguments for commands. Maybe this is also helpful for other commands that use quotation marks so far.
This commit is contained in:
@@ -2382,7 +2382,7 @@ static struct cmd_t command_defs[] =
|
||||
},
|
||||
|
||||
{ "/correct",
|
||||
parse_args, 1, 1, NULL,
|
||||
parse_args, 1, -1, NULL,
|
||||
CMD_NOSUBFUNCS
|
||||
CMD_MAINFUNC(cmd_correct)
|
||||
CMD_TAGS(
|
||||
@@ -2393,10 +2393,8 @@ static struct cmd_t command_defs[] =
|
||||
CMD_DESC(
|
||||
"Correct and resend the last message (XEP-0308).")
|
||||
CMD_ARGS(
|
||||
{ "\"message\"", "The corrected message. Multiple words need quotation marks."})
|
||||
CMD_EXAMPLES(
|
||||
"/correct Profanity",
|
||||
"/correct \"Profanity is the best\"")
|
||||
{ "message", "The corrected message."})
|
||||
CMD_NOEXAMPLES
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user