diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-10-02 16:52:50 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-10-02 16:52:50 +0500 |
commit | 27b8833ce2a493447840e207d936e176dd6430ee (patch) | |
tree | 34d157ce84c13d2e086d22088cf3a00ea0ddc112 | |
parent | de9cac43cccfd45ad867c7f08013860d0a0ea217 (diff) | |
download | prosody-27b8833ce2a493447840e207d936e176dd6430ee.tar.gz prosody-27b8833ce2a493447840e207d936e176dd6430ee.zip |
mod_register: Changed error type for hitting registration rate limit from 'cancel' to 'wait'.
-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 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(); |