Fix regression introduced when code was binarized (EJAB-641)

This commit is contained in:
Badlop 2015-09-24 17:21:14 +02:00
parent 484fd1f51f
commit ee456cc2af
1 changed files with 3 additions and 1 deletions

View File

@ -311,7 +311,9 @@ get_mod_last_configured(Server) ->
end.
is_configured(Host, Module) ->
gen_mod:is_loaded(Host, Module).
Os = ejabberd_config:get_local_option({modules, Host},
fun(M) when is_list(M) -> M end),
lists:keymember(Module, 1, Os).
opt_type(extauth_cache) ->
fun (false) -> undefined;