projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f2cecc
)
prosodyctl: Include libevent version in "about" output if luaevent is available
author
Kim Alvefur
<zash@zash.se>
Mon, 7 Mar 2016 11:13:22 +0000
(12:13 +0100)
committer
Kim Alvefur
<zash@zash.se>
Mon, 7 Mar 2016 11:13:22 +0000
(12:13 +0100)
prosodyctl
patch
|
blob
|
history
diff --git
a/prosodyctl
b/prosodyctl
index f0f8beb1cc73b8d0e14f9d43d228fb29d3a295e1..f58c3abc9c10ff12f9d0bff3d3a154e173598d83 100755
(executable)
--- 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]);