Changeset

4064:902f2ac67483

prosody, prosodyctl: Create prosody object as a local before exporting as a global
author Matthew Wild <mwild1@gmail.com>
date Tue, 04 Jan 2011 21:18:35 +0000
parents 4063:925a27f15a60
children 4065:2e03ded9b8e3
files prosody prosodyctl
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/prosody	Tue Jan 04 17:21:58 2011 +0000
+++ b/prosody	Tue Jan 04 21:18:35 2011 +0000
@@ -32,8 +32,8 @@
 end
 
 -- Global 'prosody' object
-prosody = { events = require "util.events".new(); };
-local prosody = prosody;
+local prosody = { events = require "util.events".new(); };
+_G.prosody = prosody;
 
 -- Check dependencies
 local dependencies = require "util.dependencies";
--- a/prosodyctl	Tue Jan 04 17:21:58 2011 +0000
+++ b/prosodyctl	Tue Jan 04 21:18:35 2011 +0000
@@ -32,14 +32,14 @@
 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