# HG changeset patch # User Kim Alvefur # Date 1520645058 -3600 # Node ID e3d953481f7d069e117f84b699eea8293117905c # Parent 9918f324a0bed39c27466f03111c44150f2c5ac7 mod_register_limits: Log a debug message when disallowing registration by ewhite- or blacklist diff -r 9918f324a0be -r e3d953481f7d plugins/mod_register_limits.lua --- a/plugins/mod_register_limits.lua Sat Mar 10 02:21:23 2018 +0100 +++ b/plugins/mod_register_limits.lua Sat Mar 10 02:24:18 2018 +0100 @@ -61,6 +61,7 @@ if not ip then log("debug", "User's IP not known; can't apply blacklist/whitelist"); elseif ip_in_set(blacklisted_ips, event.ip) or (whitelist_only and not ip_in_set(whitelisted_ips, ip)) then + log("debug", "Registration disallowed by white- or blacklist"); event.allowed = false; elseif throttle_max and not ip_in_set(whitelisted_ips, ip) then if not check_throttle(event.ip) then