diff options
author | Kim Alvefur <zash@zash.se> | 2023-07-16 21:04:42 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-07-16 21:04:42 +0200 |
commit | 903e945d09ffd94ebf3f08b6c5092a56ad484348 (patch) | |
tree | 18508d6bcd78c8253071a184ca1f10e68d1d5734 | |
parent | c8ed05967a9b240afa011834601f1a82467c7917 (diff) | |
download | prosody-903e945d09ffd94ebf3f08b6c5092a56ad484348.tar.gz prosody-903e945d09ffd94ebf3f08b6c5092a56ad484348.zip |
core.moduleapi: Accept boolean false to disable period setting
-rw-r--r-- | core/moduleapi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |