1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02: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), Modules = get_modules_options(Host),
case lists:keyfind(Module, 1, Modules) of case lists:keyfind(Module, 1, Modules) of
{_, Opts} -> {_, Opts} ->
start_module(Host, Module, Opts, false); start_module(Host, Module, Opts);
false -> false ->
{error, not_found_in_config} {error, not_found_in_config}
end. end.