aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-13 15:42:57 +0200
committerKim Alvefur <zash@zash.se>2016-08-13 15:42:57 +0200
commit3550142f0bfe96a5ef90f07dafcdf6dec3000e21 (patch)
tree9a2420f4d4374cdcf4349f9ce16f750591cb6499
parent0468aa76f1e3be9af2cf75392423fec2b0d2db79 (diff)
downloadprosody-3550142f0bfe96a5ef90f07dafcdf6dec3000e21.tar.gz
prosody-3550142f0bfe96a5ef90f07dafcdf6dec3000e21.zip
mod_register: Fix inverted throttle check (fixes #724)
-rw-r--r--plugins/mod_register.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua
index fda717f7..df833cad 100644
--- a/plugins/mod_register.lua
+++ b/plugins/mod_register.lua
@@ -226,7 +226,7 @@ module:hook("stanza/iq/jabber:iq:register:query", function(event)
session.send(st.error_reply(stanza, "cancel", "not-acceptable", "You are not allowed to register an account."));
return true;
elseif min_seconds_between_registrations and not whitelisted_ips[session.ip] then
- if check_throttle(session.ip) then
+ if not check_throttle(session.ip) then
session.send(st.error_reply(stanza, "wait", "not-acceptable"));
return true;
end