mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix service_info options processing
This commit is contained in:
parent
5c36c44689
commit
2150b10901
@ -488,10 +488,10 @@ get_fields_xml(Host, Module) ->
|
|||||||
lists:map(
|
lists:map(
|
||||||
fun(Opts) ->
|
fun(Opts) ->
|
||||||
Mods = proplists:get_value(modules, Opts, all),
|
Mods = proplists:get_value(modules, Opts, all),
|
||||||
Name = proplists:get_value(names, Opts, <<>>),
|
Name = proplists:get_value(name, Opts, <<>>),
|
||||||
URLs = proplists:get_value(urls, Opts, []),
|
URLs = proplists:get_value(urls, Opts, []),
|
||||||
{Mods, Name, URLs}
|
{Mods, Name, URLs}
|
||||||
end, lists:flatten(L))
|
end, L)
|
||||||
end, []),
|
end, []),
|
||||||
Fields_good = lists:filter(fun ({Modules, _, _}) ->
|
Fields_good = lists:filter(fun ({Modules, _, _}) ->
|
||||||
case Modules of
|
case Modules of
|
||||||
|
Loading…
Reference in New Issue
Block a user