# HG changeset patch # User Matthew Wild # Date 1739792186 0 # Node ID e603901eea2f519df1d433722fd010aed9950f4e # Parent 5f1232cd0923002d0e9d98df16e591792acc446e# Parent 704765bfe0a35d12a4b7417d3b8dd91380dfb336 Merge 13.0->trunk diff -r 5f1232cd0923 -r e603901eea2f util/prosodyctl/check.lua --- 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