Add /mam command

Regards https://github.com/profanity-im/profanity/issues/660
This commit is contained in:
Michael Vetter
2021-01-28 15:11:50 +01:00
parent 05bf065e68
commit 44fc3f0506
6 changed files with 38 additions and 3 deletions

View File

@@ -2546,6 +2546,21 @@ static struct cmd_t command_defs[] = {
"/url save https://profanity-im.github.io/guide/latest/userguide.html /home/user/Download/")
},
{ "/mam",
parse_args, 1, 1, &cons_mam_setting,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_mam)
CMD_TAGS(
CMD_TAG_CHAT)
CMD_SYN(
"/os <on>|<off>")
CMD_DESC(
"Enable/Disable Message Archive Management (XEP-0313)")
CMD_ARGS(
{ "on|off", "Enable or disable MAM" })
CMD_NOEXAMPLES
},
// NEXT-COMMAND (search helper)
};