25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

Restore original return value to ejabberd_config:add_option

This commit is contained in:
Paweł Chmielowski 2018-01-29 09:39:36 +01:00
parent 1b26c8d214
commit c47366ba97

View File

@ -782,7 +782,8 @@ add_local_option(Opt, Val) ->
add_option(Opt, Val) when is_atom(Opt) ->
add_option({Opt, global}, Val);
add_option({Opt, Host}, Val) ->
ets:insert(ejabberd_options, {{Opt, Host}, Val}).
ets:insert(ejabberd_options, {{Opt, Host}, Val}),
ok.
-spec prepare_opt_val(any(), any(), check_fun(), any()) -> any().