Changeset

360:81528ffa0b76

mod_register_json: Typo fix.
author Marco Cirillo <maranda@lightwitch.org>
date Tue, 12 Apr 2011 19:13:16 +0000
parents 359:5d22ebcb9ec5
children 361:146496a3be78
files mod_register_json/mod_register_json.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_register_json/mod_register_json.lua	Tue Apr 12 19:09:34 2011 +0000
+++ b/mod_register_json/mod_register_json.lua	Tue Apr 12 19:13:16 2011 +0000
@@ -63,7 +63,7 @@
 		if req_body == nil then module:log("debug", "JSON data submitted for user registration by %s failed to Decode.", user); return http_response(400, "JSON Decoding failed."); end
 		
 		-- Checks for both Throttling/Whitelist and Blacklist (basically copycatted from prosody's register.lua code)
-		if blacklist[req_body["ip"]] then then module:log("warn", "Attempt of reg. submission to the JSON servlet from blacklisted address: %s", req_body["ip"]); return http_response(403, "The specified address is blacklisted, sorry sorry."); end
+		if blacklist[req_body["ip"]] then module:log("warn", "Attempt of reg. submission to the JSON servlet from blacklisted address: %s", req_body["ip"]); return http_response(403, "The specified address is blacklisted, sorry sorry."); end
 		if throttle_time and not whitelist[req_body["ip"]] then
 			if not recent_ips[req_body["ip"]] then
 				recent_ips[req_body["ip"]] = { time = os_time(), count = 1 };