aboutsummaryrefslogtreecommitdiff
path: root/src/mod_pubsub/mod_pubsub.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2008-12-08 23:28:50 +0000
committerChristophe Romain <christophe.romain@process-one.net>2008-12-08 23:28:50 +0000
commit07e9ad307e206ce021ddd8b6e3537f0153f3806b (patch)
tree5639bc7c9eebd0ce30533653687e517f5196467b /src/mod_pubsub/mod_pubsub.erl
parentremove pubsub_state record when unsubscribing node without affiliation (EJAB-... (diff)
cosmetic change (intentation and spaces)
SVN Revision: 1719
Diffstat (limited to 'src/mod_pubsub/mod_pubsub.erl')
-rw-r--r--src/mod_pubsub/mod_pubsub.erl22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl
index 471f30346..0fb23757c 100644
--- a/src/mod_pubsub/mod_pubsub.erl
+++ b/src/mod_pubsub/mod_pubsub.erl
@@ -2442,7 +2442,7 @@ get_configure(Host, Node, From, Lang) ->
transaction(Host, Node, Action, sync_dirty).
get_default(Host, Node, _From, Lang) ->
- Type=select_type(Host, Host, Node),
+ Type = select_type(Host, Host, Node),
Options = node_options(Type),
{result, [{xmlelement, "pubsub", [{"xmlns", ?NS_PUBSUB_OWNER}],
[{xmlelement, "default", [],
@@ -2692,18 +2692,18 @@ plugins(Host) ->
_ -> [?STDNODE]
end.
select_type(ServerHost, Host, Node, Type)->
- ?DEBUG("SELECT_TYPE : ~p~n", [Node]),
- case Host of
- {_User, _Server, _Resource} ->
- case ets:lookup(gen_mod:get_module_proc(ServerHost, pubsub_state), pep_mapping) of
- [{pep_mapping, PM}] -> ?DEBUG("SELECT_TYPE : ~p~n", [PM]), proplists:get_value(Node, PM,?PEPNODE);
- R -> ?DEBUG("SELECT_TYPE why ?: ~p~n", [R]), ?PEPNODE
- end;
- _ ->
- Type
+ ?DEBUG("SELECT_TYPE : ~p~n", [[ServerHost, Host, Node, Type]]),
+ case Host of
+ {_User, _Server, _Resource} ->
+ case ets:lookup(gen_mod:get_module_proc(ServerHost, pubsub_state), pep_mapping) of
+ [{pep_mapping, PM}] -> ?DEBUG("SELECT_TYPE : ~p~n", [PM]), proplists:get_value(Node, PM, ?PEPNODE);
+ R -> ?DEBUG("SELECT_TYPE why ?: ~p~n", [R]), ?PEPNODE
+ end;
+ _ ->
+ Type
end.
select_type(ServerHost, Host, Node) ->
- select_type(ServerHost, Host, Node,hd(plugins(ServerHost))).
+ select_type(ServerHost, Host, Node, hd(plugins(ServerHost))).
features() ->
[