summaryrefslogtreecommitdiff
path: root/src/mod_privacy.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-07-06 14:58:48 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-07-06 14:58:48 +0300
commit4220a2b98cf08fda4445074f89e5bec5c5c06736 (patch)
tree1c97336460c5edf77c1beffe7f2cba0e35dd8498 /src/mod_privacy.erl
parentAdd missing '/' for jid matching from commit e300f80 (diff)
Make modules loading in a dependent order (#1191)
Diffstat (limited to 'src/mod_privacy.erl')
-rw-r--r--src/mod_privacy.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_privacy.erl b/src/mod_privacy.erl
index ad13c27c..18ff7837 100644
--- a/src/mod_privacy.erl
+++ b/src/mod_privacy.erl
@@ -36,7 +36,7 @@
check_packet/6, remove_user/2,
is_list_needdb/1, updated_list/3,
item_to_xml/1, get_user_lists/2, import/3,
- set_privacy_list/1, mod_opt_type/1]).
+ set_privacy_list/1, mod_opt_type/1, depends/2]).
-include("ejabberd.hrl").
-include("logger.hrl").
@@ -593,6 +593,9 @@ import(LServer, DBType, Data) ->
Mod = gen_mod:db_mod(DBType, ?MODULE),
Mod:import(LServer, Data).
+depends(_Host, _Opts) ->
+ [].
+
mod_opt_type(db_type) -> fun(T) -> ejabberd_config:v_db(?MODULE, T) end;
mod_opt_type(iqdisc) -> fun gen_iq_handler:check_type/1;
mod_opt_type(_) -> [db_type, iqdisc].