# HG changeset patch # User Kim Alvefur # Date 1689534282 -7200 # Node ID a7c6ea1c5308b4498923cc8ebaf006f61f0fd8a6 # Parent c563da1694bf3ce448a2341941b72669abe8362c core.moduleapi: Accept boolean false to disable period setting diff -r c563da1694bf -r a7c6ea1c5308 core/moduleapi.lua --- a/core/moduleapi.lua Sun Jul 16 21:02:24 2023 +0200 +++ b/core/moduleapi.lua Sun Jul 16 21:04:42 2023 +0200 @@ -263,7 +263,7 @@ end -- assume seconds return value; - elseif value == "never" then + elseif value == "never" or value == false then -- usually for disabling some periodic thing return math.huge; elseif type(value) == "string" then