aboutsummaryrefslogtreecommitdiff
path: root/src/mod_shared_roster_ldap.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_shared_roster_ldap.erl
parentAdd missing '/' for jid matching from commit e300f80 (diff)
Make modules loading in a dependent order (#1191)
Diffstat (limited to 'src/mod_shared_roster_ldap.erl')
-rw-r--r--src/mod_shared_roster_ldap.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_shared_roster_ldap.erl b/src/mod_shared_roster_ldap.erl
index 34588b90c..22f50d302 100644
--- a/src/mod_shared_roster_ldap.erl
+++ b/src/mod_shared_roster_ldap.erl
@@ -41,7 +41,7 @@
-export([get_user_roster/2, get_subscription_lists/3,
get_jid_info/4, process_item/2, in_subscription/6,
- out_subscription/4, mod_opt_type/1, opt_type/1]).
+ out_subscription/4, mod_opt_type/1, opt_type/1, depends/2]).
-include("ejabberd.hrl").
-include("logger.hrl").
@@ -105,6 +105,9 @@ stop(Host) ->
supervisor:terminate_child(ejabberd_sup, Proc),
supervisor:delete_child(ejabberd_sup, Proc).
+depends(_Host, _Opts) ->
+ [{mod_roster, hard}].
+
%%--------------------------------------------------------------------
%% Hooks
%%--------------------------------------------------------------------