24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-24 22:25:47 +02:00

Fix format_result so get_room_options command works again after aa5caa3

This commit is contained in:
Badlop 2016-02-17 20:43:35 +01:00
parent d40a091eda
commit eece6e69cb

View File

@ -349,7 +349,7 @@ format_result(Atom, {_Name, atom}) ->
format_result(Int, {_Name, integer}) ->
io_lib:format("~p", [Int]);
format_result(String, {_Name, string}) when is_list(String) ->
format_result([A|_]=String, {_Name, string}) when is_list(String) and is_integer(A) ->
io_lib:format("~s", [String]);
format_result(Binary, {_Name, string}) when is_binary(Binary) ->