xep-0308: add correction autocompletion

This commit is contained in:
Michael Vetter
2020-02-10 13:35:46 +01:00
parent f16d56a15e
commit 039bf5d04d
4 changed files with 48 additions and 0 deletions

View File

@@ -2361,6 +2361,24 @@ static struct cmd_t command_defs[] =
{ "on|off", ""})
CMD_NOEXAMPLES
},
{ "/correction",
parse_args, 1, 1, &cons_correction_setting,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_os)
CMD_TAGS(
CMD_TAG_CHAT,
CMD_TAG_GROUPCHAT)
CMD_SYN(
"/correction <on>|<off>",
"/correction char <char>")
CMD_DESC(
"Settings regarding Last Message Correction (XEP-0308).")
CMD_ARGS(
{ "on|off", "Enable/Disable support for last message correction."},
{ "char", "Set character that will prefix corrected messages. Default: +"})
CMD_NOEXAMPLES
},
};
static GHashTable *search_index;