diff options
author | Kim Alvefur <zash@zash.se> | 2016-03-17 22:25:56 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-03-17 22:25:56 +0100 |
commit | 1994ce590f584ab8e34f09e949cb557212e86773 (patch) | |
tree | a1d72bfb2d57165a5fd310839f96355dd895f92b | |
parent | 24a4b20169a9069e7a6db666696cfcd53b6dfba7 (diff) | |
download | prosody-1994ce590f584ab8e34f09e949cb557212e86773.tar.gz prosody-1994ce590f584ab8e34f09e949cb557212e86773.zip |
mod_register: Make sure only an on_evict function or nil is passed to util.cache
-rw-r--r-- | plugins/mod_register.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index e4b4bd51..fda717f7 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -187,7 +187,7 @@ local throttle_cache = new_cache(throttle_cache_size, blacklist_overflow and fun module:log("info", "Adding ip %s to registration blacklist", ip); blacklisted_ips[ip] = true; end -end); +end or nil); local function check_throttle(ip) if not throttle_max then return true end |