aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-01-04 21:18:35 +0000
committerMatthew Wild <mwild1@gmail.com>2011-01-04 21:18:35 +0000
commit943409e595fcffa6ae27043af3b8e3387a48a1fa (patch)
tree1013a0b2d16754f63a939a24b838abeab0a16996 /prosodyctl
parentabd55f9e2c1c7972f8f25385fa07c8ac2ae0f4cf (diff)
downloadprosody-943409e595fcffa6ae27043af3b8e3387a48a1fa.tar.gz
prosody-943409e595fcffa6ae27043af3b8e3387a48a1fa.zip
prosody, prosodyctl: Create prosody object as a local before exporting as a global
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl4
1 files changed, 2 insertions, 2 deletions
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