From 943409e595fcffa6ae27043af3b8e3387a48a1fa Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 4 Jan 2011 21:18:35 +0000 Subject: prosody, prosodyctl: Create prosody object as a local before exporting as a global --- prosodyctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 9630a9b8..dae9268a 100755 --- a/prosodyctl +++ b/prosodyctl @@ -32,14 +32,14 @@ if CFG_DATADIR then end -- Global 'prosody' object -prosody = { +local prosody = { hosts = {}; events = require "util.events".new(); platform = "posix"; lock_globals = function () end; unlock_globals = function () end; }; -local prosody = prosody; +_G.prosody = prosody; local dependencies = require "util.dependencies"; if not dependencies.check_dependencies() then -- cgit v1.2.3