aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_register_limits.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-10 02:24:18 +0100
committerKim Alvefur <zash@zash.se>2018-03-10 02:24:18 +0100
commit549d89cb0d07728a2e4d28f930d182deef3b7a72 (patch)
tree06d9c6f2596597ba127a883ab90390e027b2c36f /plugins/mod_register_limits.lua
parent9d92cdc944b12ce6985c77782b3f31f21b630f03 (diff)
downloadprosody-549d89cb0d07728a2e4d28f930d182deef3b7a72.tar.gz
prosody-549d89cb0d07728a2e4d28f930d182deef3b7a72.zip
mod_register_limits: Log a debug message when disallowing registration by ewhite- or blacklist
Diffstat (limited to 'plugins/mod_register_limits.lua')
-rw-r--r--plugins/mod_register_limits.lua1
1 files changed, 1 insertions, 0 deletions
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