summaryrefslogtreecommitdiff
path: root/src/ext_mod.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2016-01-26 10:00:11 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2016-01-26 10:00:28 +0100
commitbdeb4a7e32dbf6b998018196781cdd142bff3c38 (patch)
tree23c1d74bfa8bf2667f0fdd2ad1ef0d9578a4257f /src/ext_mod.erl
parentMerge branch 'master' of github.com:processone/ejabberd (diff)
Add a way to get all ejabberd_commands, not only those that was registered
This is part of (TECH-1828).
Diffstat (limited to '')
-rw-r--r--src/ext_mod.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ext_mod.erl b/src/ext_mod.erl
index c6fbf509..46ece873 100644
--- a/src/ext_mod.erl
+++ b/src/ext_mod.erl
@@ -33,7 +33,7 @@
installed_command/0, installed/0, installed/1,
install/1, uninstall/1, upgrade/0, upgrade/1,
add_sources/2, del_sources/1, modules_dir/0,
- config_dir/0, opt_type/1]).
+ config_dir/0, opt_type/1, get_commands_spec/0]).
-include("ejabberd_commands.hrl").
-include("logger.hrl").
@@ -46,12 +46,12 @@ start() ->
[code:add_patha(module_ebin_dir(Module))
|| {Module, _} <- installed()],
application:start(inets),
- ejabberd_commands:register_commands(commands()).
+ ejabberd_commands:register_commands(get_commands_spec()).
stop() ->
- ejabberd_commands:unregister_commands(commands()).
+ ejabberd_commands:unregister_commands(get_commands_spec()).
-commands() ->
+get_commands_spec() ->
[#ejabberd_commands{name = modules_update_specs,
tags = [admin,modules],
desc = "",