25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix args_examples from last commit

This commit is contained in:
Paweł Chmielowski 2017-07-14 17:17:26 +02:00
parent fdb863ce70
commit 33a9d6a3c3

View File

@ -606,8 +606,8 @@ get_commands_spec() ->
"1970-01-01 00:00:00 UTC, for example: date +%s", "1970-01-01 00:00:00 UTC, for example: date +%s",
module = mod_last, function = store_last_info, module = mod_last, function = store_last_info,
args = [{user, binary}, {host, binary}, {timestamp, integer}, {status, binary}], args = [{user, binary}, {host, binary}, {timestamp, integer}, {status, binary}],
args_example = [<<"user1">>,<<"myserver.com">>, <<"2017-06-30T14:32:16.060684Z">>, <<"GoSleeping">>], args_example = [<<"user1">>,<<"myserver.com">>, 1500045311, <<"GoSleeping">>],
args_desc = ["User name", "Server name"], args_desc = ["User name", "Server name", "Number of seconds since epoch", "Status message"],
result = {res, rescode}}, result = {res, rescode}},
#ejabberd_commands{name = private_get, tags = [private], #ejabberd_commands{name = private_get, tags = [private],
@ -708,8 +708,8 @@ get_commands_spec() ->
{subject, binary}, {body, binary}], {subject, binary}, {body, binary}],
args_example = [<<"headline">>, <<"admin@localhost">>, <<"user1@localhost">>, args_example = [<<"headline">>, <<"admin@localhost">>, <<"user1@localhost">>,
<<"Restart">>, <<"In 5 minutes">>], <<"Restart">>, <<"In 5 minutes">>],
args_desc = ["Message type: normal, chat, headline", "User server name", args_desc = ["Message type: normal, chat, headline", "Sender JID",
"Sender JID", "Destination 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 as if sent from a c2s session",
@ -752,7 +752,7 @@ get_commands_spec() ->
module = ?MODULE, function = stats, module = ?MODULE, function = stats,
args = [{name, binary}, {host, binary}], args = [{name, binary}, {host, binary}],
args_example = [<<"registeredusers">>, <<"example.com">>], args_example = [<<"registeredusers">>, <<"example.com">>],
args_desc = ["Statistic name"], args_desc = ["Statistic name", "Server JID"],
result_example = 6, result_example = 6,
result_desc = "Integer statistic value", result_desc = "Integer statistic value",
result = {stat, integer}} result = {stat, integer}}