aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_ctl.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ejabberd_ctl.erl')
-rw-r--r--src/ejabberd_ctl.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl
index 6ab383b12..1eae7f758 100644
--- a/src/ejabberd_ctl.erl
+++ b/src/ejabberd_ctl.erl
@@ -353,6 +353,15 @@ format_result(String, {_Name, string}) when is_list(String) ->
format_result(Binary, {_Name, string}) when is_binary(Binary) ->
io_lib:format("~s", [binary_to_list(Binary)]);
+format_result(Atom, {_Name, string}) when is_atom(Atom) ->
+ io_lib:format("~s", [atom_to_list(Atom)]);
+
+format_result(Integer, {_Name, string}) when is_integer(Integer) ->
+ io_lib:format("~s", [integer_to_list(Integer)]);
+
+format_result(Other, {_Name, string}) ->
+ io_lib:format("~p", [Other]);
+
format_result(Code, {_Name, rescode}) ->
make_status(Code);