From: Christophe Romain Date: Thu, 19 Jun 2008 09:08:30 +0000 (+0000) Subject: allow get_default on PEP nodes (EJAB-656) X-Git-Tag: v2.0.2~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c9d424330a4aef8da76f9f26ab36d510db39eaf;p=ejabberd allow get_default on PEP nodes (EJAB-656) SVN Revision: 1363 --- 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", [],