aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-03-07 12:13:22 +0100
committerKim Alvefur <zash@zash.se>2016-03-07 12:13:22 +0100
commit1a1d74a1b2c5d852b5b67a916a85068d6c9775b8 (patch)
treeccdb54397eaead5c7fe6650864df28eaf1cd3bcf
parentda4afcbab756e737eefb53ddbe18f80b31115276 (diff)
downloadprosody-1a1d74a1b2c5d852b5b67a916a85068d6c9775b8.tar.gz
prosody-1a1d74a1b2c5d852b5b67a916a85068d6c9775b8.zip
prosodyctl: Include libevent version in "about" output if luaevent is available
-rwxr-xr-xprosodyctl3
1 files changed, 3 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index f0f8beb1..f58c3abc 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -590,6 +590,9 @@ function commands.about(arg)
module_versions[name] = module._VERSION;
end
end
+ if luaevent then
+ module_versions["libevent"] = luaevent.core.libevent_version();
+ end
local sorted_keys = array.collect(keys(module_versions)):sort();
for _, name in ipairs(array.collect(keys(module_versions)):sort()) do
print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]);