aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_shell.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-06-12 17:49:44 +0200
committerKim Alvefur <zash@zash.se>2021-06-12 17:49:44 +0200
commite17cfb0fdcdd00ada3026bf791572cd10444e5fe (patch)
treea868cef7e2ce3b7a82f10184113dee7b384913f7 /plugins/mod_admin_shell.lua
parent4e2fc4ce89edbc556b9ecba20ae32ddd810b65c4 (diff)
downloadprosody-e17cfb0fdcdd00ada3026bf791572cd10444e5fe.tar.gz
prosody-e17cfb0fdcdd00ada3026bf791572cd10444e5fe.zip
mod_admin_shell: module:info: List provided 'items'
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r--plugins/mod_admin_shell.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index d7dd73f7..ae83bd9c 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -414,6 +414,12 @@ function def_env.module:info(name, hosts)
if mod.module.status_message then
print(" status: [" .. mod.module.status_type .. "] " .. mod.module.status_message);
end
+ if mod.module.items and next(mod.module.items) ~= nil then
+ print(" provides:");
+ for kind, items in pairs(mod.module.items) do
+ print(string.format(" - %s (%d item%s)", kind, #items, #items > 1 and "s" or ""));
+ end
+ end
if mod.module.dependencies and next(mod.module.dependencies) ~= nil then
print(" dependencies:");
for dep in pairs(mod.module.dependencies) do