# HG changeset patch # User Kim Alvefur # Date 1458249956 -3600 # Node ID c4af754d1e1bb79192f9024750d810a2a5d85194 # Parent 688a7f5d3624ec48ee743bda057603def7bddf10 mod_register: Make sure only an on_evict function or nil is passed to util.cache diff -r 688a7f5d3624 -r c4af754d1e1b plugins/mod_register.lua --- a/plugins/mod_register.lua Thu Mar 17 19:14:58 2016 +0000 +++ b/plugins/mod_register.lua Thu Mar 17 22:25:56 2016 +0100 @@ -187,7 +187,7 @@ 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