# HG changeset patch # User Marco Cirillo # Date 1302635596 0 # Node ID 81528ffa0b767be176fb9470c68334a71c16bc7f # Parent 5d22ebcb9ec5769c6bd7d869d2af9eb9cd84701e mod_register_json: Typo fix. diff -r 5d22ebcb9ec5 -r 81528ffa0b76 mod_register_json/mod_register_json.lua --- 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 };