Software /
code /
prosody
Changeset
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 |
parents | 13207:c563da1694bf |
children | 13209:c8d949cf6b09 |
files | core/moduleapi.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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