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_configure2.erl | |
parent | Add missing '/' for jid matching from commit e300f80 (diff) |
Make modules loading in a dependent order (#1191)
Diffstat (limited to 'src/mod_configure2.erl')
-rw-r--r-- | src/mod_configure2.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_configure2.erl b/src/mod_configure2.erl index a8287b4d..85b7740d 100644 --- a/src/mod_configure2.erl +++ b/src/mod_configure2.erl @@ -32,7 +32,7 @@ -behaviour(gen_mod). -export([start/2, stop/1, process_local_iq/3, - mod_opt_type/1, opt_type/1]). + mod_opt_type/1, opt_type/1, depends/2]). -include("ejabberd.hrl"). -include("logger.hrl"). @@ -201,6 +201,9 @@ process_get(#xmlel{name = <<"last">>, attrs = Attrs}, Lang) -> %% {result, }; process_get(_, _) -> {error, ?ERR_BAD_REQUEST}. +depends(_Host, _Opts) -> + []. + mod_opt_type(iqdisc) -> fun gen_iq_handler:check_type/1; mod_opt_type(_) -> [iqdisc]. |