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

prevent from calling get_vh_registered_users/2 when not available

SVN Revision: 1869
This commit is contained in:
Christophe Romain 2009-02-13 13:28:10 +00:00
parent bb13c9e8ab
commit d1001a99c2
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-02-13 Christophe Romain <christophe.romain@process-one.net>
* src/ejabberd_auth.erl: prevent from calling
get_vh_registered_users/2 when not available
2009-02-05 Badlop <badlop@process-one.net>
* src/mod_pubsub/mod_pubsub.erl: The table pubsub_node in ejabberd

View File

@ -185,7 +185,13 @@ get_vh_registered_users(Server) ->
get_vh_registered_users(Server, Opts) ->
lists:flatmap(
fun(M) ->
M:get_vh_registered_users(Server, Opts)
case erlang:function_exported(
M, get_vh_registered_users, 2) of
true ->
M:get_vh_registered_users(Server, Opts);
false ->
M:get_vh_registered_users(Server)
end
end, auth_modules(Server)).
get_vh_registered_users_number(Server) ->