prosodyctl: Include libevent version in "about" output if luaevent is available
authorKim Alvefur <zash@zash.se>
Mon, 07 Mar 2016 12:13:22 +0100
changeset 7252 c49f69bb68f7
parent 7247 8c6943918279
child 7253 6ffc9247417a
prosodyctl: Include libevent version in "about" output if luaevent is available
prosodyctl
--- 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]);