25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

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

View File

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