25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix errors from 1a0db3d

This commit is contained in:
Christophe Romain 2017-07-21 11:42:03 +02:00
parent 1a0db3de3a
commit 2e88d001d6
2 changed files with 9 additions and 9 deletions

View File

@ -974,7 +974,7 @@ get_commands_spec() ->
desc = "List user's connected resources", desc = "List user's connected resources",
policy = user, policy = user,
module = ?MODULE, function = user_resources, module = ?MODULE, function = user_resources,
args = [], args = [{user, binary}, {host, binary}],
args_desc = ["User name", "Server name"], args_desc = ["User name", "Server name"],
args_example = [<<"user1">>, <<"example.com">>], args_example = [<<"user1">>, <<"example.com">>],
result_example = [<<"tka1">>, <<"Gajim">>, <<"mobile-app">>], result_example = [<<"tka1">>, <<"Gajim">>, <<"mobile-app">>],

View File

@ -113,16 +113,16 @@ get_commands_spec() ->
tags = [admin,modules], tags = [admin,modules],
desc = "Compile, install and start an available contributed module", desc = "Compile, install and start an available contributed module",
module = ?MODULE, function = install, module = ?MODULE, function = install,
args_desc = "Module name", args_desc = ["Module name"],
args_example = mod_rest, args_example = [<<"mod_rest">>],
args = [{module, binary}], args = [{module, binary}],
result = {res, rescode}}, result = {res, rescode}},
#ejabberd_commands{name = module_uninstall, #ejabberd_commands{name = module_uninstall,
tags = [admin,modules], tags = [admin,modules],
desc = "Uninstall a contributed module", desc = "Uninstall a contributed module",
module = ?MODULE, function = uninstall, module = ?MODULE, function = uninstall,
args_desc = "Module name", args_desc = ["Module name"],
args_example = mod_rest, args_example = [<<"mod_rest">>],
args = [{module, binary}], args = [{module, binary}],
result = {res, rescode}}, result = {res, rescode}},
#ejabberd_commands{name = module_upgrade, #ejabberd_commands{name = module_upgrade,
@ -130,16 +130,16 @@ get_commands_spec() ->
desc = "Upgrade the running code of an installed module", desc = "Upgrade the running code of an installed module",
longdesc = "In practice, this uninstalls and installs the module", longdesc = "In practice, this uninstalls and installs the module",
module = ?MODULE, function = upgrade, module = ?MODULE, function = upgrade,
args_desc = "Module name", args_desc = ["Module name"],
args_example = mod_rest, args_example = [<<"mod_rest">>],
args = [{module, binary}], args = [{module, binary}],
result = {res, rescode}}, result = {res, rescode}},
#ejabberd_commands{name = module_check, #ejabberd_commands{name = module_check,
tags = [admin,modules], tags = [admin,modules],
desc = "Check the contributed module repository compliance", desc = "Check the contributed module repository compliance",
module = ?MODULE, function = check, module = ?MODULE, function = check,
args_desc = "Module name", args_desc = ["Module name"],
args_example = mod_rest, args_example = [<<"mod_rest">>],
args = [{module, binary}], args = [{module, binary}],
result = {res, rescode}} result = {res, rescode}}
]. ].