Remove autocomplete for /correct-editor

We decided that it was better to remove autocomplete for this command,
since adding it only introduced problems and the command can still
function perfectly without autocomplete.
This commit is contained in:
MarcoPolo-PasTonMolo
2021-10-21 17:01:54 +03:00
parent cd16264d2b
commit 6b0f15a1c9
4 changed files with 18 additions and 31 deletions

View File

@@ -2623,21 +2623,19 @@ static struct cmd_t command_defs[] = {
},
{ "/correct-editor",
parse_args_as_one, 1, 1, NULL,
parse_args, 0, 0, NULL,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_correct_editor)
CMD_TAGS(
CMD_TAG_CHAT,
CMD_TAG_GROUPCHAT)
CMD_SYN(
"/correct-editor <message>")
"/correct-editor")
CMD_DESC(
"Spawn external editor to correct and resend the last message (XEP-0308). "
"Use tab completion to get the last sent message. "
"For more information on how to configure corrections, see: /help correction. "
"Use /executable to set your favourite editor.")
CMD_ARGS(
{ "message", "The corrected message." })
CMD_NOARGS
CMD_NOEXAMPLES
},