mod_register: Changed error type for hitting registration rate limit from 'cancel' to 'wait'.

Fri, 02 Oct 2009 16:52:50 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 02 Oct 2009 16:52:50 +0500
changeset 1858
49eef8e19a71
parent 1857
ef266aa8e18f
child 1859
c965b0accc7c

mod_register: Changed error type for hitting registration rate limit from 'cancel' to 'wait'.

plugins/mod_register.lua file | annotate | diff | comparison | revisions
--- 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();

mercurial