From 2c9d424330a4aef8da76f9f26ab36d510db39eaf Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Thu, 19 Jun 2008 09:08:30 +0000 Subject: [PATCH] allow get_default on PEP nodes (EJAB-656) SVN Revision: 1363 --- src/mod_pubsub/mod_pubsub.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index 84b9f5e2e..7645d316b 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -2342,7 +2342,10 @@ get_configure(Host, Node, From, Lang) -> transaction(Host, Node, Action, sync_dirty). get_default(Host, _Node, _From, Lang) -> - Type = hd(plugins(Host)), % first configured plugin is default + Type = case Host of + {_, _, _} -> ?PEPNODE; + _ -> hd(plugins(Host)) + end, Options = node_options(Type), {result, [{xmlelement, "pubsub", [{"xmlns", ?NS_PUBSUB_OWNER}], [{xmlelement, "default", [], -- 2.50.1