Diff

plugins/mod_register.lua @ 7605:2481ebc7f715

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 18 Aug 2016 17:36:46 +0200
parent 7570:c61ea328fac2
child 7709:0af1783d1592
line wrap: on
line diff
--- a/plugins/mod_register.lua	Thu Aug 18 17:23:06 2016 +0200
+++ b/plugins/mod_register.lua	Thu Aug 18 17:36:46 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