Permalink
Browse files

Fix errors from 1a0db3d

1 parent 1a0db3d commit 2e88d001d62c5cee9a143996b834542722face3c Christophe Romain committed Jul 21, 2017
Showing with 9 additions and 9 deletions.
  1. +1 −1 src/ejabberd_sm.erl
  2. +8 −8 src/ext_mod.erl
View
@@ -974,7 +974,7 @@ get_commands_spec() ->
desc = "List user's connected resources",
policy = user,
module = ?MODULE, function = user_resources,
- args = [],
+ args = [{user, binary}, {host, binary}],
args_desc = ["User name", "Server name"],
args_example = [<<"user1">>, <<"example.com">>],
result_example = [<<"tka1">>, <<"Gajim">>, <<"mobile-app">>],
View
@@ -113,33 +113,33 @@ get_commands_spec() ->
tags = [admin,modules],
desc = "Compile, install and start an available contributed module",
module = ?MODULE, function = install,
- args_desc = "Module name",
- args_example = mod_rest,
+ args_desc = ["Module name"],
+ args_example = [<<"mod_rest">>],
args = [{module, binary}],
result = {res, rescode}},
#ejabberd_commands{name = module_uninstall,
tags = [admin,modules],
desc = "Uninstall a contributed module",
module = ?MODULE, function = uninstall,
- args_desc = "Module name",
- args_example = mod_rest,
+ args_desc = ["Module name"],
+ args_example = [<<"mod_rest">>],
args = [{module, binary}],
result = {res, rescode}},
#ejabberd_commands{name = module_upgrade,
tags = [admin,modules],
desc = "Upgrade the running code of an installed module",
longdesc = "In practice, this uninstalls and installs the module",
module = ?MODULE, function = upgrade,
- args_desc = "Module name",
- args_example = mod_rest,
+ args_desc = ["Module name"],
+ args_example = [<<"mod_rest">>],
args = [{module, binary}],
result = {res, rescode}},
#ejabberd_commands{name = module_check,
tags = [admin,modules],
desc = "Check the contributed module repository compliance",
module = ?MODULE, function = check,
- args_desc = "Module name",
- args_example = mod_rest,
+ args_desc = ["Module name"],
+ args_example = [<<"mod_rest">>],
args = [{module, binary}],
result = {res, rescode}}
].

0 comments on commit 2e88d00

Please sign in to comment.