aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-06-12 16:40:40 +0200
committerKim Alvefur <zash@zash.se>2021-06-12 16:40:40 +0200
commit98aa4ec604a5cfda0e3f9a91c7104857f594e741 (patch)
tree4d9b0c2d0c6761262365785ef5418a832dee2a26 /plugins
parentbf565c76f67d63c0129f41cc48a639c2f4f662ca (diff)
downloadprosody-98aa4ec604a5cfda0e3f9a91c7104857f594e741.tar.gz
prosody-98aa4ec604a5cfda0e3f9a91c7104857f594e741.zip
mod_admin_shell: module:info: List dependencies
Diffstat (limited to 'plugins')
-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 054ddf0a..cc735fe9 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -420,6 +420,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.dependencies and next(mod.module.dependencies) ~= nil then
+ print(" dependencies:");
+ for dep in pairs(mod.module.dependencies) do
+ print(" - mod_" .. dep);
+ end
+ end
end
return true;
end