25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Remove load_config command because is superseded by reload_config (#532)

This commit is contained in:
Badlop 2015-04-20 15:56:37 +02:00
parent 837706e9d9
commit c2e6ce0f04

View File

@ -33,7 +33,6 @@
-export([start/2, stop/1,
%% Node
compile/1,
load_config/1,
get_cookie/0,
remove_node/1,
export2odbc/2,
@ -146,11 +145,6 @@ commands() ->
module = ?MODULE, function = compile,
args = [{file, string}],
result = {res, rescode}},
#ejabberd_commands{name = load_config, tags = [server],
desc = "Load ejabberd configuration file",
module = ?MODULE, function = load_config,
args = [{file, string}],
result = {res, rescode}},
#ejabberd_commands{name = get_cookie, tags = [erlang],
desc = "Get the Erlang cookie of this node",
module = ?MODULE, function = get_cookie,
@ -547,9 +541,6 @@ commands() ->
compile(File) ->
compile:file(File).
load_config(Path) ->
ok = ejabberd_config:load_file(Path).
get_cookie() ->
atom_to_list(erlang:get_cookie()).