Software /
code /
prosody
Changeset
3998:009d1ad84b49
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 | 3997:678e0688c18c |
children | 3999:58c0de7c6da0 |
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