aboutsummaryrefslogtreecommitdiff
path: root/src/mod_sic.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_sic.erl')
-rw-r--r--src/mod_sic.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mod_sic.erl b/src/mod_sic.erl
index ed44f8500..3ffd9c917 100644
--- a/src/mod_sic.erl
+++ b/src/mod_sic.erl
@@ -5,7 +5,7 @@
%%% Created : 6 Mar 2010 by Karim Gemayel <karim.gemayel@process-one.net>
%%%
%%%
-%%% ejabberd, Copyright (C) 2002-2015 ProcessOne
+%%% ejabberd, Copyright (C) 2002-2016 ProcessOne
%%%
%%% This program is free software; you can redistribute it and/or
%%% modify it under the terms of the GNU General Public License as
@@ -25,12 +25,14 @@
-module(mod_sic).
+-protocol({xep, 279, '0.2'}).
+
-author('karim.gemayel@process-one.net').
-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").
@@ -89,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].