diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-18 17:36:46 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-18 17:36:46 +0200 |
commit | 5ce8cd7c944d2e59621a79fb0fdc51a49f42af5e (patch) | |
tree | a89e877c6e83d9aa3b79825812361591bf12bf2e /plugins/mod_register.lua | |
parent | 2d2c10e83b62fbe72ac90043eca1c90d60a8cee5 (diff) | |
parent | 33a8994b3cf6aabe428b7cdf6bba7bdf68d9c366 (diff) | |
download | prosody-5ce8cd7c944d2e59621a79fb0fdc51a49f42af5e.tar.gz prosody-5ce8cd7c944d2e59621a79fb0fdc51a49f42af5e.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_register.lua')
-rw-r--r-- | plugins/mod_register.lua | 2 |
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 |