Software /
code /
prosody
Changeset
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 |
parents | 7291:688a7f5d3624 |
children | 7294:5f4d0753c818 |
files | plugins/mod_register.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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