diff options
Diffstat (limited to 'src/mod_sic.erl')
-rw-r--r-- | src/mod_sic.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_sic.erl b/src/mod_sic.erl index 273930ff0..3f5bf0dab 100644 --- a/src/mod_sic.erl +++ b/src/mod_sic.erl @@ -32,7 +32,7 @@ -behaviour(gen_mod). -export([start/2, stop/1, process_local_iq/3, - process_sm_iq/3]). + process_sm_iq/3, mod_opt_type/1]). -include("ejabberd.hrl"). -include("logger.hrl"). @@ -91,3 +91,6 @@ get_ip({User, Server, Resource}, IQ#iq{type = error, sub_el = [SubEl, ?ERR_INTERNAL_SERVER_ERROR]} end. + +mod_opt_type(iqdisc) -> fun gen_iq_handler:check_type/1; +mod_opt_type(_) -> [iqdisc]. |