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

Use ejabberd_config:get_option/2 instead of ejabberd_config:get_local_option/2

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
This commit is contained in:
Peter Lemenkov 2017-02-16 20:41:57 +03:00
parent eec63dbefe
commit cb30f7733d
2 changed files with 2 additions and 2 deletions

View File

@ -315,7 +315,7 @@ get_mod_last_configured(Server) ->
end.
is_configured(Host, Module) ->
Os = ejabberd_config:get_local_option({modules, Host},
Os = ejabberd_config:get_option({modules, Host},
fun(M) when is_list(M) -> M end),
lists:keymember(Module, 1, Os).

View File

@ -270,7 +270,7 @@ remove_user(User, Server, Password) ->
is_scrammed() ->
scram ==
ejabberd_config:get_local_option({auth_password_format, ?MYNAME},
ejabberd_config:get_option({auth_password_format, ?MYNAME},
fun(V) -> V end).
password_to_scram(Password) ->