25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

allow get_default on PEP nodes (EJAB-656)

SVN Revision: 1364
This commit is contained in:
Christophe Romain 2008-06-19 09:08:39 +00:00
parent 5fdcb52306
commit cf8be23af1

View File

@ -2352,7 +2352,10 @@ get_configure(Host, Node, From, Lang) ->
transaction(Host, Node, Action, sync_dirty). transaction(Host, Node, Action, sync_dirty).
get_default(Host, _Node, _From, Lang) -> 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), Options = node_options(Type),
{result, [{xmlelement, "pubsub", [{"xmlns", ?NS_PUBSUB_OWNER}], {result, [{xmlelement, "pubsub", [{"xmlns", ?NS_PUBSUB_OWNER}],
[{xmlelement, "default", [], [{xmlelement, "default", [],