Software /
code /
prosody
Diff
plugins/mod_register.lua @ 1858:49eef8e19a71
mod_register: Changed error type for hitting registration rate limit from 'cancel' to 'wait'.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 02 Oct 2009 16:52:50 +0500 |
parent | 1857:ef266aa8e18f |
child | 1859:c965b0accc7c |
line wrap: on
line diff
--- a/plugins/mod_register.lua Fri Oct 02 16:50:30 2009 +0500 +++ b/plugins/mod_register.lua Fri Oct 02 16:52:50 2009 +0500 @@ -131,7 +131,7 @@ 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();