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
1 changed files with 2 additions and 1 deletions

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().