aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2021-05-11 14:10:26 +0100
committerMatthew Wild <mwild1@gmail.com>2021-05-11 14:10:26 +0100
commit08f721a07280cf59abd167ad0fcfcb6f9bb8fb19 (patch)
treec4850fcb66468a23fa038b05a3f0776bc88f7b5b
parentb369dea3d885a0a5efe882f75f5e90704cb95e87 (diff)
downloadprosody-08f721a07280cf59abd167ad0fcfcb6f9bb8fb19.tar.gz
prosody-08f721a07280cf59abd167ad0fcfcb6f9bb8fb19.zip
mod_limits: Don't emit error when no burst period is configured
-rw-r--r--plugins/mod_limits.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_limits.lua b/plugins/mod_limits.lua
index 914d5c44..616dca1b 100644
--- a/plugins/mod_limits.lua
+++ b/plugins/mod_limits.lua
@@ -31,7 +31,7 @@ local function parse_burst(burst, sess_type)
burst = burst:match("^(%d+) ?s$");
end
local n_burst = tonumber(burst);
- if not n_burst then
+ if burst and not n_burst then
module:log("error", "Unable to parse burst for %s: %q, using default burst interval (%ds)", sess_type, tostring(burst), default_burst);
end
return n_burst or default_burst;