25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Allow multiple modules section

Fixes processone/ejabberd-contrib#282
This commit is contained in:
Evgeny Khramtsov 2019-11-06 13:43:30 +03:00
parent bb26d7c379
commit c48e972573

View File

@ -557,11 +557,13 @@ pre_validate(Y1) ->
version => ejabberd_options:opt_type(version), version => ejabberd_options:opt_type(version),
host_config => econf:map(econf:binary(), econf:any()), host_config => econf:map(econf:binary(), econf:any()),
append_host_config => econf:map(econf:binary(), econf:any()), append_host_config => econf:map(econf:binary(), econf:any()),
modules => ejabberd_options:opt_type(modules),
'_' => econf:any()}, '_' => econf:any()},
[{required, [hosts]}]), [{required, [hosts]}]),
Y1) of Y1) of
{ok, Y2} -> {ok, Y2} ->
{ok, group_duplicated_options(Y2, [append_host_config, host_config])}; {ok, group_duplicated_options(
Y2, [append_host_config, host_config, modules])};
Err -> Err ->
Err Err
end. end.