changeset 362:bd0a8c032163

mod_register_json: Typo fix.
author Marco Cirillo <maranda@lightwitch.org>
date Tue, 12 Apr 2011 20:50:43 +0000
parents 146496a3be78
children 72a5778579c5
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 20:41:57 2011 +0000
+++ b/mod_register_json/mod_register_json.lua	Tue Apr 12 20:50:43 2011 +0000
@@ -67,7 +67,7 @@
 			return http_response(401, "I obey only to my masters... Have a nice day.");
 		else	
 			-- 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 };