# HG changeset patch # User Kim Alvefur # Date 1624307910 -7200 # Node ID ef62d29c8fdc7d59d97a807510502f99850e7055 # Parent 04abe65b80679ec557fbd64d5f8dfd5f1ef8d47b mod_external_services: Also validate services added by other modules This ensures that problems with entries added other modules, e.g. mod_turn_external, are reported on startup. However, this depends on load order and whether a `module:depends()` call comes before the `module:add_item()` call. A followup commit will do something about that. diff -r 04abe65b8067 -r ef62d29c8fdc plugins/mod_external_services.lua --- a/plugins/mod_external_services.lua Mon Jun 21 17:31:17 2021 +0200 +++ b/plugins/mod_external_services.lua Mon Jun 21 22:38:30 2021 +0200 @@ -100,7 +100,8 @@ function module.load() -- Trigger errors on startup - local services = configured_services / prepare; + local extras = module:get_host_items("external_service"); + local services = ( configured_services + extras ) / prepare; if #services == 0 then module:log("warn", "No services configured or all had errors"); end