summaryrefslogtreecommitdiff
path: root/src/mod_mam.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2017-07-21 11:18:44 +0200
committerBadlop <badlop@process-one.net>2017-07-21 11:26:53 +0200
commit1a0db3de3a6ab53557772f2db8a84de771d46f87 (patch)
treed09da15e1c803b5d1af9cc6c2d666f0c9ea9e464 /src/mod_mam.erl
parentFix indentation of commands lines (diff)
Describe commands arguments and results in ejabberd_sm, ext_mod, mod_mam
Diffstat (limited to 'src/mod_mam.erl')
-rw-r--r--src/mod_mam.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mod_mam.erl b/src/mod_mam.erl
index eb2082fe..d4c18d41 100644
--- a/src/mod_mam.erl
+++ b/src/mod_mam.erl
@@ -1008,6 +1008,9 @@ get_commands_spec() ->
longdesc = "Valid message TYPEs: "
"\"chat\", \"groupchat\", \"all\".",
module = ?MODULE, function = delete_old_messages,
+ args_desc = ["Type of messages to delete (chat, groupchat, all)",
+ "Days to keep messages"],
+ args_example = [<<"all">>, 31],
args = [{type, binary}, {days, integer}],
result = {res, rescode}}].