Software /
code /
prosody
Diff
prosodyctl @ 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 |
parent | 3904:f93163081b3c |
child | 3999:58c0de7c6da0 |
line wrap: on
line diff
--- 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