core.moduleapi: Accept boolean false to disable period setting
authorKim Alvefur <zash@zash.se>
Sun, 16 Jul 2023 21:04:42 +0200
changeset 13212 a7c6ea1c5308
parent 13211 c563da1694bf
child 13213 c8d949cf6b09
core.moduleapi: Accept boolean false to disable period setting
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