From 27b8833ce2a493447840e207d936e176dd6430ee Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 2 Oct 2009 16:52:50 +0500 Subject: mod_register: Changed error type for hitting registration rate limit from 'cancel' to 'wait'. --- plugins/mod_register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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(); -- cgit v1.2.3