]> granicus.if.org Git - ejabberd/commitdiff
Use ejabberd_config:get_version in ejabberdctl status
authorPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 9 Jul 2018 15:11:24 +0000 (17:11 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 9 Jul 2018 15:11:40 +0000 (17:11 +0200)
src/ejabberd_ctl.erl

index a1a92f3e28384a0107b04bf718f0dda252449648..7914fcfba5831ca15141806ce08dff82662cce61 100644 (file)
@@ -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;