From dc6861eb73033f91378e68ce50c8ebab1336af7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 9 Jul 2018 17:11:24 +0200 Subject: [PATCH] Use ejabberd_config:get_version in ejabberdctl status --- src/ejabberd_ctl.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.40.0