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
commit58a7a62a8e10e4e9c0f9f2504af4bdfcc190470c (patch)
treeccdb54397eaead5c7fe6650864df28eaf1cd3bcf
parent3f2145c47781bd36e26d98e9003ef6406fc987a3 (diff)
downloadprosody-58a7a62a8e10e4e9c0f9f2504af4bdfcc190470c.tar.gz
prosody-58a7a62a8e10e4e9c0f9f2504af4bdfcc190470c.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]);