mod_register_json/mod_register_json.lua
changeset 710 b0c0acccd7c4
parent 660 aa3fbb33700d
child 721 9080b0898b6f
--- a/mod_register_json/mod_register_json.lua	Sat Jun 09 23:15:44 2012 +0200
+++ b/mod_register_json/mod_register_json.lua	Mon Jun 11 00:35:26 2012 +0000
@@ -87,7 +87,7 @@
 					if os_time() - recent_ips[req_body["ip"]] < throttle_time then
 						recent_ips[req_body["ip"]] = os_time()
 						module:log("warn", "JSON Registration request from %s has been throttled.", req_body["ip"])
-						return http_response(503, "Woah... How many users you want to register..? Request throttled, wait a bit and try again.")
+						return http_response(event, 503, "Woah... How many users you want to register..? Request throttled, wait a bit and try again.")
 					end
 					recent_ips[req_body["ip"]] = os_time()
 				end