# HG changeset patch # User Kim Alvefur # Date 1625056386 -7200 # Node ID c8ccaac78f64a495fa9f1cac1b29b0b52120f756 # Parent d6eb2b722b90ed36a7c0294d2f05c9417b92005b mod_checkcerts: Notify both host-local and global admins diff -r d6eb2b722b90 -r c8ccaac78f64 mod_checkcerts/mod_checkcerts.lua --- a/mod_checkcerts/mod_checkcerts.lua Tue Jun 29 12:48:42 2021 +0200 +++ b/mod_checkcerts/mod_checkcerts.lua Wed Jun 30 14:33:06 2021 +0200 @@ -77,7 +77,7 @@ module:log(log_warn and "warn" or "info", fmt, certfile, timediff); if nag_admin then local body = fmt:format("for host ".. module.host, timediff); - for _,admin in ipairs(module:get_option_array("admins", {})) do + for admin in module:get_option_inherited_set("admins", {}) do module:send(st.message({ from = module.host, to = admin, type = "chat" }, body)); end end