25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Tweak srg_get_info result formatting (#1048)

This commit is contained in:
Badlop 2016-04-06 17:54:31 +02:00
parent a9e50468b6
commit 27b4217a9d

View File

@ -1309,8 +1309,7 @@ srg_get_info(Group, Host) ->
Os when is_list(Os) -> Os; Os when is_list(Os) -> Os;
error -> [] error -> []
end, end,
[{jlib:atom_to_binary(Title), [{jlib:atom_to_binary(Title), btl(Value)} || {Title, Value} <- Opts].
io_lib:format("~p", [btl(Value)])} || {Title, Value} <- Opts].
btl([]) -> []; btl([]) -> [];
btl([B|L]) -> [btl(B)|btl(L)]; btl([B|L]) -> [btl(B)|btl(L)];