From cf7241d3b6f2b5eda0d2300167df6ff6686d15e2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 10 Mar 2018 02:24:18 +0100 Subject: mod_register_limits: Log a debug message when disallowing registration by ewhite- or blacklist --- plugins/mod_register_limits.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mod_register_limits.lua b/plugins/mod_register_limits.lua index 1fb3c05e..1d12f7f2 100644 --- a/plugins/mod_register_limits.lua +++ b/plugins/mod_register_limits.lua @@ -61,6 +61,7 @@ module:hook("user-registering", function (event) 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 -- cgit v1.2.3