# HG changeset patch # User Waqas Hussain # Date 1260392176 -18000 # Node ID f5c8f727b2a9bc1503667f9b7af9bbe2834b822b # Parent c0da9e7b044783fb5fcc0bb17284b03493159b21 Mainfile: Broke up a really long line. diff -r c0da9e7b0447 -r f5c8f727b2a9 prosody --- a/prosody Wed Dec 09 13:20:46 2009 +0000 +++ b/prosody Thu Dec 10 01:56:16 2009 +0500 @@ -185,7 +185,7 @@ -- Load SSL settings from config, and create a ctx table local global_ssl_ctx = rawget(_G, "ssl") and config.get("*", "core", "ssl"); if global_ssl_ctx then - local default_ssl_ctx = { mode = "server", protocol = "sslv23", capath = "/etc/ssl/certs", verify = "none", options = "no_sslv2"; }; + local default_ssl_ctx = { mode = "server", protocol = "sslv23", capath = "/etc/ssl/certs", verify = "none", options = "no_sslv2" }; setmetatable(global_ssl_ctx, { __index = default_ssl_ctx }); prosody.global_ssl_ctx = global_ssl_ctx; end @@ -294,8 +294,11 @@ end function init_global_protection() - -- Catch global accesses -- - local locked_globals_mt = { __index = function (t, k) error("Attempt to read a non-existent global '"..k.."'", 2); end, __newindex = function (t, k, v) error("Attempt to set a global: "..tostring(k).." = "..tostring(v), 2); end } + -- Catch global accesses + local locked_globals_mt = { + __index = function (t, k) error("Attempt to read a non-existent global '"..k.."'", 2); end; + __newindex = function (t, k, v) error("Attempt to set a global: "..tostring(k).." = "..tostring(v), 2); end; + }; function prosody.unlock_globals() setmetatable(_G, nil);