diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-01-04 21:18:35 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-01-04 21:18:35 +0000 |
commit | 943409e595fcffa6ae27043af3b8e3387a48a1fa (patch) | |
tree | 1013a0b2d16754f63a939a24b838abeab0a16996 | |
parent | abd55f9e2c1c7972f8f25385fa07c8ac2ae0f4cf (diff) | |
download | prosody-943409e595fcffa6ae27043af3b8e3387a48a1fa.tar.gz prosody-943409e595fcffa6ae27043af3b8e3387a48a1fa.zip |
prosody, prosodyctl: Create prosody object as a local before exporting as a global
-rwxr-xr-x | prosody | 4 | ||||
-rwxr-xr-x | prosodyctl | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -32,8 +32,8 @@ if CFG_DATADIR then 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"; @@ -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 |