diff options
author | Badlop <badlop@process-one.net> | 2019-08-01 11:29:42 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2019-08-01 11:29:42 +0200 |
commit | 66d2e6ca27bee7dce6d7ec52ff3f5d750ae696dc (patch) | |
tree | 6ecdcdbed87d8e947b0bd18b748e2695fd16694b /src | |
parent | Don't call ejabberd_cluster from its submodules (diff) |
Explain requirements of the FROM argument of send_message command (#2959)
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_admin_extra.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 8d6689613..5c5c6cb25 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -730,12 +730,16 @@ get_commands_spec() -> result = {value, integer}}, #ejabberd_commands{name = send_message, tags = [stanza], desc = "Send a message to a local or remote bare of full JID", + longdesc = "When sending a groupchat message to a MUC room, " + "FROM must be the full JID of a room occupant, " + "or the bare JID of a MUC service admin, " + "or the bare JID of a MUC/Sub subscribed user.", module = ?MODULE, function = send_message, args = [{type, binary}, {from, binary}, {to, binary}, {subject, binary}, {body, binary}], args_example = [<<"headline">>, <<"admin@localhost">>, <<"user1@localhost">>, <<"Restart">>, <<"In 5 minutes">>], - args_desc = ["Message type: normal, chat, headline", "Sender JID", + args_desc = ["Message type: normal, chat, headline, groupchat", "Sender JID", "Receiver JID", "Subject, or empty string", "Body"], result = {res, rescode}}, #ejabberd_commands{name = send_stanza_c2s, tags = [stanza], |