mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Document that send_stanza_c2s requires an existing sender C2S session
This commit is contained in:
parent
c4d45ec08c
commit
f6c6ff561a
@ -744,7 +744,9 @@ get_commands_spec() ->
|
|||||||
"Receiver JID", "Subject, or empty string", "Body"],
|
"Receiver JID", "Subject, or empty string", "Body"],
|
||||||
result = {res, rescode}},
|
result = {res, rescode}},
|
||||||
#ejabberd_commands{name = send_stanza_c2s, tags = [stanza],
|
#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,
|
module = ?MODULE, function = send_stanza_c2s,
|
||||||
args = [{user, binary}, {host, binary}, {resource, binary}, {stanza, binary}],
|
args = [{user, binary}, {host, binary}, {resource, binary}, {stanza, binary}],
|
||||||
args_example = [<<"admin">>, <<"myserver.com">>, <<"bot">>,
|
args_example = [<<"admin">>, <<"myserver.com">>, <<"bot">>,
|
||||||
|
Loading…
Reference in New Issue
Block a user