aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-02 16:52:50 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-02 16:52:50 +0500
commit27b8833ce2a493447840e207d936e176dd6430ee (patch)
tree34d157ce84c13d2e086d22088cf3a00ea0ddc112 /plugins
parentde9cac43cccfd45ad867c7f08013860d0a0ea217 (diff)
downloadprosody-27b8833ce2a493447840e207d936e176dd6430ee.tar.gz
prosody-27b8833ce2a493447840e207d936e176dd6430ee.zip
mod_register: Changed error type for hitting registration rate limit from 'cancel' to 'wait'.
Diffstat (limited to 'plugins')
-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 d29a74af..1d883eff 100644
--- a/plugins/mod_register.lua
+++ b/plugins/mod_register.lua
@@ -131,7 +131,7 @@ module:add_iq_handler("c2s_unauthed", "jabber:iq:register", function (session, s
if os_time() - ip.time < min_seconds_between_registrations then
ip.time = os_time();
- session.send(st.error_reply(stanza, "cancel", "not-acceptable"));
+ session.send(st.error_reply(stanza, "wait", "not-acceptable"));
return;
end
ip.time = os_time();