Diff

plugins/mod_register.lua @ 7293:c4af754d1e1b

mod_register: Make sure only an on_evict function or nil is passed to util.cache
author Kim Alvefur <zash@zash.se>
date Thu, 17 Mar 2016 22:25:56 +0100
parent 7037:5d52e4ee2ae1
child 7570:c61ea328fac2
line wrap: on
line diff
--- 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