summaryrefslogtreecommitdiff
path: root/src/mod_roster.erl
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2003-01-24 20:18:33 +0000
committerAlexey Shchepin <alexey@process-one.net>2003-01-24 20:18:33 +0000
commit2aa3c1c7208823fedc77e7c8d1a50d2012676e78 (patch)
tree45e0eca88b360fd15f6a51cfb59f0b2b98e3dcca /src/mod_roster.erl
parent*** empty log message *** (diff)
*** empty log message ***
SVN Revision: 49
Diffstat (limited to '')
-rw-r--r--src/mod_roster.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mod_roster.erl b/src/mod_roster.erl
index 56df1bc4..ea8e48a5 100644
--- a/src/mod_roster.erl
+++ b/src/mod_roster.erl
@@ -10,7 +10,7 @@
-author('alexey@sevcom.net').
-vsn('$Revision$ ').
--export([]).
+-behaviour(gen_mod).
-export([start/1,
process_iq/3,
@@ -33,12 +33,13 @@
xattrs = [],
xs = []}).
-start(Type) ->
+start(Opts) ->
+ IQDisc = gen_mod:get_opt(iqdisc, Opts, one_queue),
mnesia:create_table(roster,[{disc_copies, [node()]},
{attributes, record_info(fields, roster)}]),
mnesia:add_table_index(roster, user),
gen_iq_handler:add_iq_handler(ejabberd_local, ?NS_ROSTER,
- ?MODULE, process_local_iq, Type).
+ ?MODULE, process_local_iq, IQDisc).
process_local_iq(From, To, {iq, _, Type, _, _} = IQ) ->
case Type of