aboutsummaryrefslogtreecommitdiff
path: root/src/mod_pubsub/mod_pubsub.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2007-12-08 15:24:38 +0000
committerChristophe Romain <christophe.romain@process-one.net>2007-12-08 15:24:38 +0000
commit23b91e953a6ed95b30a68c3350746410630f3a69 (patch)
treee4323f1800568c3bd684c625b932b88b3c3fa1da /src/mod_pubsub/mod_pubsub.erl
parent* src/ejabberd_sm.erl: Bugfix (diff)
pubsub disco_sm_items bugfix
SVN Revision: 1051
Diffstat (limited to 'src/mod_pubsub/mod_pubsub.erl')
-rw-r--r--src/mod_pubsub/mod_pubsub.erl11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl
index 25a225487..88ccc8d3d 100644
--- a/src/mod_pubsub/mod_pubsub.erl
+++ b/src/mod_pubsub/mod_pubsub.erl
@@ -347,7 +347,7 @@ disco_sm_items(Acc, _From, To, Node, _Lang) ->
%% TODO, use iq_disco_items(Host, Node, From)
Host = To#jid.lserver,
LJID = jlib:jid_tolower(jlib:jid_remove_resource(To)),
- case tree_action(Host, get_items, [Host, Node]) of
+ case get_items(Host, Node) of
[] ->
Acc;
AllItems ->
@@ -2705,11 +2705,10 @@ features(Host, Node) ->
tree_call({_User, Server, _Resource}, Function, Args) ->
tree_call(Server, Function, Args);
tree_call(Host, Function, Args) ->
- Module = case ets:lookup(gen_mod:get_module_proc(Host, pubsub_state),
- nodetree) of
- [{nodetree, N}] -> N;
- _ -> list_to_atom(?TREE_PREFIX ++ ?STDNODE)
- end,
+ Module = case ets:lookup(gen_mod:get_module_proc(Host, pubsub_state), nodetree) of
+ [{nodetree, N}] -> N;
+ _ -> list_to_atom(?TREE_PREFIX ++ ?STDNODE)
+ end,
catch apply(Module, Function, Args).
tree_action(Host, Function, Args) ->
Fun = fun() -> tree_call(Host, Function, Args) end,