mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix format_result so get_room_options command works again after aa5caa3
This commit is contained in:
parent
d40a091eda
commit
eece6e69cb
@ -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) ->
|
||||
|
Loading…
Reference in New Issue
Block a user