diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-10 02:24:18 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-10 02:24:18 +0100 |
commit | 549d89cb0d07728a2e4d28f930d182deef3b7a72 (patch) | |
tree | 06d9c6f2596597ba127a883ab90390e027b2c36f | |
parent | 9d92cdc944b12ce6985c77782b3f31f21b630f03 (diff) | |
download | prosody-549d89cb0d07728a2e4d28f930d182deef3b7a72.tar.gz prosody-549d89cb0d07728a2e4d28f930d182deef3b7a72.zip |
mod_register_limits: Log a debug message when disallowing registration by ewhite- or blacklist
-rw-r--r-- | plugins/mod_register_limits.lua | 1 |
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 |