# HG changeset patch # User Matthew Wild # Date 1620738626 -3600 # Node ID 929de6ade6b6d03dc0d83b779c8193126e69060d # Parent 5a484bd050a761733807cc3579483db8cd7eb894 mod_limits: Don't emit error when no burst period is configured diff -r 5a484bd050a7 -r 929de6ade6b6 plugins/mod_limits.lua --- a/plugins/mod_limits.lua Mon Apr 26 15:32:05 2021 +0200 +++ b/plugins/mod_limits.lua Tue May 11 14:10:26 2021 +0100 @@ -31,7 +31,7 @@ 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;