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

Validate module options on start_module/2

This commit is contained in:
Evgeniy Khramtsov 2017-05-04 09:09:10 +03:00
parent 31fa36003f
commit a2a4a4970e

View File

@ -178,7 +178,7 @@ start_module(Host, Module) ->
Modules = get_modules_options(Host),
case lists:keyfind(Module, 1, Modules) of
{_, Opts} ->
start_module(Host, Module, Opts, false);
start_module(Host, Module, Opts);
false ->
{error, not_found_in_config}
end.