mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-10 21:47:01 +02:00
allow get_default on PEP nodes (EJAB-656)
SVN Revision: 1363
This commit is contained in:
parent
541f381145
commit
2c9d424330
|
@ -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", [],
|
||||
|
|
Loading…
Reference in New Issue
Block a user