Software /
code /
prosody
Changeset
7570:c61ea328fac2
mod_register: Fix inverted throttle check (fixes #724)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 13 Aug 2016 15:42:57 +0200 |
parents | 7569:a15ce0014ac9 |
children | 7571:e8efb5cf0877 |
files | plugins/mod_register.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_register.lua Sat Aug 13 15:09:43 2016 +0200 +++ b/plugins/mod_register.lua Sat Aug 13 15:42:57 2016 +0200 @@ -226,7 +226,7 @@ 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