mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix ejabberd_auth:get_vh_registered_users/2 (thanks to Andreas Köhler)
This commit is contained in:
parent
555a3113a1
commit
3cb128963c
@ -264,11 +264,11 @@ get_vh_registered_users(Server, Opts) when is_list(Server) ->
|
|||||||
lists:flatmap(
|
lists:flatmap(
|
||||||
fun(M) ->
|
fun(M) ->
|
||||||
case erlang:function_exported(
|
case erlang:function_exported(
|
||||||
M, get_vh_registered_users_number, 2) of
|
M, get_vh_registered_users, 2) of
|
||||||
true ->
|
true ->
|
||||||
M:get_vh_registered_users_number(Server, Opts);
|
M:get_vh_registered_users(Server, Opts);
|
||||||
false ->
|
false ->
|
||||||
M:get_vh_registered_users_number(Server)
|
M:get_vh_registered_users(Server)
|
||||||
end
|
end
|
||||||
end, auth_modules(Server)).
|
end, auth_modules(Server)).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user