Changeset

7249:c49f69bb68f7

prosodyctl: Include libevent version in "about" output if luaevent is available
author Kim Alvefur <zash@zash.se>
date Mon, 07 Mar 2016 12:13:22 +0100
parents 7244:8c6943918279
children 7250:6ffc9247417a
files prosodyctl
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Sun Mar 06 18:51:11 2016 +0100
+++ b/prosodyctl	Mon Mar 07 12:13:22 2016 +0100
@@ -590,6 +590,9 @@
 			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]);