diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-07-06 14:58:48 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-07-06 14:58:48 +0300 |
commit | 4220a2b98cf08fda4445074f89e5bec5c5c06736 (patch) | |
tree | 1c97336460c5edf77c1beffe7f2cba0e35dd8498 /src/mod_vcard.erl | |
parent | Add missing '/' for jid matching from commit e300f80 (diff) |
Make modules loading in a dependent order (#1191)
Diffstat (limited to 'src/mod_vcard.erl')
-rw-r--r-- | src/mod_vcard.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_vcard.erl b/src/mod_vcard.erl index 5e042528..aca9d746 100644 --- a/src/mod_vcard.erl +++ b/src/mod_vcard.erl @@ -34,7 +34,7 @@ -export([start/2, init/3, stop/1, get_sm_features/5, process_local_iq/3, process_sm_iq/3, string2lower/1, - remove_user/2, export/1, import/1, import/3, + remove_user/2, export/1, import/1, import/3, depends/2, mod_opt_type/1, set_vcard/3, make_vcard_search/4]). -include("ejabberd.hrl"). @@ -594,6 +594,9 @@ import(LServer, DBType, VCard) -> Mod = gen_mod:db_mod(DBType, ?MODULE), Mod:import(LServer, VCard). +depends(_Host, _Opts) -> + []. + mod_opt_type(allow_return_all) -> fun (B) when is_boolean(B) -> B end; mod_opt_type(db_type) -> fun(T) -> ejabberd_config:v_db(?MODULE, T) end; |