Software /
code /
prosody
Changeset
13728:e603901eea2f
Merge 13.0->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 17 Feb 2025 11:36:26 +0000 |
parents | 13726:5f1232cd0923 (current diff) 13727:704765bfe0a3 (diff) |
children | 13730:c653c1d3e8da |
files | |
diffstat | 1 files changed, 15 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl/check.lua Mon Feb 17 01:01:54 2025 +0100 +++ b/util/prosodyctl/check.lua Mon Feb 17 11:36:26 2025 +0000 @@ -1613,21 +1613,23 @@ if found then local enabled_component_modules = api(found):get_option_inherited_set("modules_enabled"); local recommended_mods = recommended_component_modules[component_module]; - local missing_mods = {}; - for _, mod in ipairs(recommended_mods) do - if not enabled_component_modules:contains(mod) then - table.insert(missing_mods, mod); + if recommended_mods then + local missing_mods = {}; + for _, mod in ipairs(recommended_mods) do + if not enabled_component_modules:contains(mod) then + table.insert(missing_mods, mod); + end end - end - if #missing_mods > 0 then - if not current_feature.lacking_component_modules then - current_feature.lacking_component_modules = {}; + if #missing_mods > 0 then + if not current_feature.lacking_component_modules then + current_feature.lacking_component_modules = {}; + end + table.insert(current_feature.lacking_component_modules, { + host = found; + component_module = component_module; + missing_mods = missing_mods; + }); end - table.insert(current_feature.lacking_component_modules, { - host = found; - component_module = component_module; - missing_mods = missing_mods; - }); end end end