Software /
code /
prosody
Diff
core/moduleapi.lua @ 13208:a7c6ea1c5308
core.moduleapi: Accept boolean false to disable period setting
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 16 Jul 2023 21:04:42 +0200 |
parent | 13207:c563da1694bf |
child | 13211:4d4f9e42bcf8 |
line wrap: on
line diff
--- 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