# HG changeset patch # User Marco Cirillo # Date 1302641443 0 # Node ID bd0a8c032163c7cb5cc013d1526b4852283735b2 # Parent 146496a3be786fb2b557e3453e79e6e8cb675bf0 mod_register_json: Typo fix. diff -r 146496a3be78 -r bd0a8c032163 mod_register_json/mod_register_json.lua --- 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 };