about summary refs log tree commit diff stats
path: root/src/command/cmd_defs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r--src/command/cmd_defs.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c
index 94633f03..ce79cf7d 100644
--- a/src/command/cmd_defs.c
+++ b/src/command/cmd_defs.c
@@ -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)
 };