From 903e945d09ffd94ebf3f08b6c5092a56ad484348 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 16 Jul 2023 21:04:42 +0200 Subject: core.moduleapi: Accept boolean false to disable period setting --- core/moduleapi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 2b3e36c1..53e74a84 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -263,7 +263,7 @@ function api:get_option_period(name, default_value) 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 -- cgit v1.2.3