mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Print command's reply and newline only when there's something to print.
SVN Revision: 2806
This commit is contained in:
parent
b9e57a341d
commit
d24449488c
@ -197,8 +197,12 @@ process(["help" | Mode]) ->
|
|||||||
process(Args) ->
|
process(Args) ->
|
||||||
AccessCommands = get_accesscommands(),
|
AccessCommands = get_accesscommands(),
|
||||||
{String, Code} = process2(Args, AccessCommands),
|
{String, Code} = process2(Args, AccessCommands),
|
||||||
io:format(String),
|
case String of
|
||||||
io:format("\n"),
|
[] -> ok;
|
||||||
|
_ ->
|
||||||
|
io:format(String),
|
||||||
|
io:format("\n")
|
||||||
|
end,
|
||||||
Code.
|
Code.
|
||||||
|
|
||||||
%% @spec (Args::[string()], AccessCommands) -> {String::string(), Code::integer()}
|
%% @spec (Args::[string()], AccessCommands) -> {String::string(), Code::integer()}
|
||||||
|
Loading…
Reference in New Issue
Block a user