Fix output formatting in srg_get_info commend from mod_admin_extra

This commit is contained in:
Paweł Chmielowski 2015-04-02 16:55:51 +02:00
parent b580da3547
commit 088c5c4672
1 changed files with 1 additions and 3 deletions

View File

@ -319,7 +319,6 @@ commands() ->
module = ?MODULE, function = set_nickname,
args = [{user, binary}, {host, binary}, {nickname, binary}],
result = {res, rescode}},
#ejabberd_commands{name = get_vcard, tags = [vcard],
desc = "Get content from a vCard field",
longdesc = Vcard1FieldsString ++ "\n" ++ Vcard2FieldsString ++ "\n\n" ++ VcardXEP,
@ -1324,8 +1323,7 @@ srg_get_info(Group, Host) ->
Os when is_list(Os) -> Os;
error -> []
end,
[{io_lib:format("~p", [Title]),
io_lib:format("~p", [Value])} || {Title, Value} <- Opts].
[{jlib:atom_to_binary(Title), Value} || {Title, Value} <- Opts].
srg_get_members(Group, Host) ->
Members = mod_shared_roster:get_group_explicit_users(Host,Group),