# HG changeset patch # User Kim Alvefur # Date 1678021706 -3600 # Node ID aaf055d6fe7a73923f50afd1bd8b270e03408540 # Parent d238633a9d6781fa2a3818ad27318f5a616300d2 mod_admin_shell: Show reverse dependencies in module:info() Why was this module loaded? Now you can find out! diff -r d238633a9d67 -r aaf055d6fe7a plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Sun Mar 05 14:07:08 2023 +0100 +++ b/plugins/mod_admin_shell.lua Sun Mar 05 14:08:26 2023 +0100 @@ -575,6 +575,12 @@ print(" - mod_" .. dep); end end + if mod.module.reverse_dependencies and next(mod.module.reverse_dependencies) ~= nil then + print(" reverse dependencies:"); + for dep in pairs(mod.module.reverse_dependencies) do + print(" - mod_" .. dep); + end + end end return true; end