mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
prevent from calling get_vh_registered_users/2 when not available
SVN Revision: 1869
This commit is contained in:
parent
bb13c9e8ab
commit
d1001a99c2
@ -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
|
||||
|
@ -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) ->
|
||||
|
Loading…
Reference in New Issue
Block a user