From 26df5eea856fb8b6f9a4b312eb8b5341fa828ad6 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 10 Dec 2009 01:56:16 +0500 Subject: Mainfile: Broke up a really long line. --- prosody | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'prosody') diff --git a/prosody b/prosody index 7f69e085..95be55e3 100755 --- a/prosody +++ b/prosody @@ -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); -- cgit v1.2.3