From: Paweł Chmielowski Date: Mon, 9 Jul 2018 15:11:24 +0000 (+0200) Subject: Use ejabberd_config:get_version in ejabberdctl status X-Git-Tag: 18.09~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc6861eb73033f91378e68ce50c8ebab1336af7a;p=ejabberd Use ejabberd_config:get_version in ejabberdctl status --- diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl index a1a92f3e2..7914fcfba 100644 --- a/src/ejabberd_ctl.erl +++ b/src/ejabberd_ctl.erl @@ -175,8 +175,8 @@ process(["status"], _Version) -> "Check for error messages: ~s~n" "or other files in that directory.~n", [EjabberdLogPath]), ?STATUS_ERROR; - {value, {_, _, Version}} -> - print("ejabberd ~s is running in that node~n", [Version]), + {value, {_, _, _Version}} -> + print("ejabberd ~s is running in that node~n", [ejabberd_config:get_version()]), ?STATUS_SUCCESS end;