Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2016-02-17 22:43:35 +0300
committerBadlop <badlop@process-one.net>2016-02-17 22:43:35 +0300
commiteece6e69cbc29b13cda1e489699ea83cfb3d49c5 (patch)
treedfcfc88ca03918422d2d3f318674ad766e47d2bc /src/ejabberd_ctl.erl
parentd40a091eda4a4a9d3d6c9e27ea4c0aeea2a7496d (diff)
Fix format_result so get_room_options command works again after aa5caa3
Diffstat (limited to 'src/ejabberd_ctl.erl')
-rw-r--r--src/ejabberd_ctl.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl
index 9ff30d7ff..7a26644f5 100644
--- a/src/ejabberd_ctl.erl
+++ b/src/ejabberd_ctl.erl
@@ -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) ->