aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-07-03 00:42:54 +0200
committerBadlop <badlop@process-one.net>2010-07-03 00:42:54 +0200
commit7e90d6cf923327c0f6391b309dfd4ccc46eb2186 (patch)
treeaa7229de23483376e837b2325ea2fe10dca71d3f
parentShow some more room options in the log file (diff)
Fix print of command result that contains ~ (thanks to Tsukasa Hamano)
-rw-r--r--src/ejabberd_ctl.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl
index aee1a011f..33b2fe4d0 100644
--- a/src/ejabberd_ctl.erl
+++ b/src/ejabberd_ctl.erl
@@ -201,8 +201,7 @@ process(Args) ->
case String of
[] -> ok;
_ ->
- io:format(String),
- io:format("\n")
+ io:format("~s~n", [String])
end,
Code.