diff options
author | Badlop <badlop@process-one.net> | 2021-03-16 12:58:48 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2021-03-18 16:15:07 +0100 |
commit | f6c6ff561ab2fa539e26116ab2a5324519cd8bdf (patch) | |
tree | 7a722b8f5d9eacf78b3dad686fe9f61963d26110 | |
parent | Revert "Close pgsql ports on ejabberd_sql process termination (#2541)" (diff) |
Document that send_stanza_c2s requires an existing sender C2S session
-rw-r--r-- | src/mod_admin_extra.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 62d5d4a11..7db05b0fc 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -744,7 +744,9 @@ get_commands_spec() -> "Receiver JID", "Subject, or empty string", "Body"], result = {res, rescode}}, #ejabberd_commands{name = send_stanza_c2s, tags = [stanza], - desc = "Send a stanza as if sent from a c2s session", + desc = "Send a stanza from an existing C2S session", + longdesc = "USER@HOST/RESOURCE must be an existing C2S session." + " As an alternative, use send_stanza instead.", module = ?MODULE, function = send_stanza_c2s, args = [{user, binary}, {host, binary}, {resource, binary}, {stanza, binary}], args_example = [<<"admin">>, <<"myserver.com">>, <<"bot">>, |