aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-16 21:04:42 +0200
committerKim Alvefur <zash@zash.se>2023-07-16 21:04:42 +0200
commit903e945d09ffd94ebf3f08b6c5092a56ad484348 (patch)
tree18508d6bcd78c8253071a184ca1f10e68d1d5734 /core
parentc8ed05967a9b240afa011834601f1a82467c7917 (diff)
downloadprosody-903e945d09ffd94ebf3f08b6c5092a56ad484348.tar.gz
prosody-903e945d09ffd94ebf3f08b6c5092a56ad484348.zip
core.moduleapi: Accept boolean false to disable period setting
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
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