aboutsummaryrefslogtreecommitdiff
path: root/src/mod_pubsub/mod_pubsub_odbc.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2009-10-06 15:18:58 +0000
committerChristophe Romain <christophe.romain@process-one.net>2009-10-06 15:18:58 +0000
commit0a77892391cbb83d7bd279c05bdfc49426847e08 (patch)
tree038bcc987e5f811141c710d1b2abe2c77e19ce6d /src/mod_pubsub/mod_pubsub_odbc.erl
parentImprove stream error stanza when receives invalid handshake from component. (diff)
allow max_items_node use on pep
SVN Revision: 2642
Diffstat (limited to 'src/mod_pubsub/mod_pubsub_odbc.erl')
-rw-r--r--src/mod_pubsub/mod_pubsub_odbc.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_pubsub/mod_pubsub_odbc.erl b/src/mod_pubsub/mod_pubsub_odbc.erl
index 4ae6a0374..06e831bcf 100644
--- a/src/mod_pubsub/mod_pubsub_odbc.erl
+++ b/src/mod_pubsub/mod_pubsub_odbc.erl
@@ -194,6 +194,8 @@ init([ServerHost, Opts]) ->
ets:insert(gen_mod:get_module_proc(Host, config), {max_items_node, MaxItemsNode}),
ets:insert(gen_mod:get_module_proc(ServerHost, config), {nodetree, NodeTree}),
ets:insert(gen_mod:get_module_proc(ServerHost, config), {plugins, Plugins}),
+ ets:insert(gen_mod:get_module_proc(ServerHost, config), {last_item_cache, Plugins}),
+ ets:insert(gen_mod:get_module_proc(ServerHost, config), {max_items_node, LastItemCache}),
ets:insert(gen_mod:get_module_proc(ServerHost, config), {pep_mapping, PepMapping}),
ejabberd_hooks:add(disco_sm_identity, ServerHost, ?MODULE, disco_sm_identity, 75),
ejabberd_hooks:add(disco_sm_features, ServerHost, ?MODULE, disco_sm_features, 75),