diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-12-10 01:56:16 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-12-10 01:56:16 +0500 |
commit | 26df5eea856fb8b6f9a4b312eb8b5341fa828ad6 (patch) | |
tree | 163029b19b813c41f2aefc53b52865e8bb14a259 | |
parent | 5d568b20f190be63fb133e1b54b00deb82cb84bf (diff) | |
download | prosody-26df5eea856fb8b6f9a4b312eb8b5341fa828ad6.tar.gz prosody-26df5eea856fb8b6f9a4b312eb8b5341fa828ad6.zip |
Mainfile: Broke up a really long line.
-rwxr-xr-x | prosody | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -284,8 +284,11 @@ function prepare_to_start() 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); |