aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2016-02-17 20:43:35 +0100
committerBadlop <badlop@process-one.net>2016-02-17 20:43:35 +0100
commiteece6e69cbc29b13cda1e489699ea83cfb3d49c5 (patch)
treedfcfc88ca03918422d2d3f318674ad766e47d2bc
parentAnother fix for \n in ejabberdctl arguments (diff)
Fix format_result so get_room_options command works again after aa5caa3
-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) ->