From: Christophe Romain Date: Thu, 19 Jun 2008 09:08:39 +0000 (+0000) Subject: allow get_default on PEP nodes (EJAB-656) X-Git-Tag: v2.1.0~18^2~681 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf8be23af18752df9d41a2bb5d197e9abbbc13b3;p=ejabberd allow get_default on PEP nodes (EJAB-656) SVN Revision: 1364 --- diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index cb8ce997d..349c7ad4f 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -2352,7 +2352,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", [],