diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2016-01-26 10:00:11 +0100 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2016-01-26 10:00:28 +0100 |
commit | bdeb4a7e32dbf6b998018196781cdd142bff3c38 (patch) | |
tree | 23c1d74bfa8bf2667f0fdd2ad1ef0d9578a4257f /src/ejabberd_admin.erl | |
parent | Merge 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 'src/ejabberd_admin.erl')
-rw-r--r-- | src/ejabberd_admin.erl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ejabberd_admin.erl b/src/ejabberd_admin.erl index 5352ae1e..4aa5faed 100644 --- a/src/ejabberd_admin.erl +++ b/src/ejabberd_admin.erl @@ -51,7 +51,8 @@ install_fallback_mnesia/1, dump_to_textfile/1, dump_to_textfile/2, mnesia_change_nodename/4, - restore/1 % Still used by some modules + restore/1, % Still used by some modules + get_commands_spec/0 ]). -include("ejabberd.hrl"). @@ -59,16 +60,16 @@ -include("ejabberd_commands.hrl"). start() -> - 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()). %%% %%% ejabberd commands %%% -commands() -> +get_commands_spec() -> [ %% The commands status, stop and restart are implemented also in ejabberd_ctl %% They are defined here so that other interfaces can use them too |