mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
allow get_default on PEP nodes (EJAB-656)
SVN Revision: 1364
This commit is contained in:
parent
5fdcb52306
commit
cf8be23af1
@ -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", [],
|
||||
|
Loading…
Reference in New Issue
Block a user