25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +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),
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()},
[{required, [hosts]}]),
Y1) of
{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
end.