mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
prosodyctl: Include libevent version in "about" output if luaevent is available
This commit is contained in:
parent
da4afcbab7
commit
1a1d74a1b2
1 changed files with 3 additions and 0 deletions
|
@ -590,6 +590,9 @@ function commands.about(arg)
|
||||||
module_versions[name] = module._VERSION;
|
module_versions[name] = module._VERSION;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if luaevent then
|
||||||
|
module_versions["libevent"] = luaevent.core.libevent_version();
|
||||||
|
end
|
||||||
local sorted_keys = array.collect(keys(module_versions)):sort();
|
local sorted_keys = array.collect(keys(module_versions)):sort();
|
||||||
for _, name in ipairs(array.collect(keys(module_versions)):sort()) do
|
for _, name in ipairs(array.collect(keys(module_versions)):sort()) do
|
||||||
print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]);
|
print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue