diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-10-22 12:38:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 12:38:39 +0200 |
commit | 59063aa3b43cd973ab328b406f1ab40dcf09b41a (patch) | |
tree | 59efb04637298ba2b34bfb7351b40823b02c062c /src/command/cmd_defs.c | |
parent | 37e1699c84bfb34dafaee4cd061eedad79fc114d (diff) | |
parent | da3a6d87437ce14215acbb5f1740cb81066df39d (diff) | |
download | profani-tty-59063aa3b43cd973ab328b406f1ab40dcf09b41a.tar.gz |
Merge pull request #1601 from MarcoPolo-PasTonMolo/master
Add /correct-editor command
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index f435d77f..7bc4a1ff 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2622,6 +2622,23 @@ static struct cmd_t command_defs[] = { CMD_NOEXAMPLES }, + { "/correct-editor", + parse_args, 0, 0, NULL, + CMD_NOSUBFUNCS + CMD_MAINFUNC(cmd_correct_editor) + CMD_TAGS( + CMD_TAG_CHAT, + CMD_TAG_GROUPCHAT) + CMD_SYN( + "/correct-editor") + CMD_DESC( + "Spawn external editor to correct and resend the last message (XEP-0308). " + "For more information on how to configure corrections, see: /help correction. " + "Use /executable to set your favourite editor.") + CMD_NOARGS + CMD_NOEXAMPLES + }, + { "/silence", parse_args, 1, 1, &cons_silence_setting, CMD_NOSUBFUNCS |