aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprosodyctl6
1 files changed, 5 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index 27a44ec4..fabfe04f 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -457,7 +457,11 @@ function commands.about(arg)
if #name > longest_name then
longest_name = #name;
end
- module_versions[name] = module._VERSION;
+ local mod_version = module._VERSION;
+ if tostring(mod_version):sub(1, #name+1) == name .. " " then
+ mod_version = mod_version:sub(#name+2);
+ end
+ module_versions[name] = mod_version;
end
end
if lunbound then