# HG changeset patch # User Matthew Wild # Date 1273086843 -3600 # Node ID 518e3f6f994637b3c744fe7a90112daa6479db61 # Parent 6d86e26f0923d28f000a95b0b28b81679a7e8dce prosodyctl: Relocate global prosody object creation (see fff153f7f4de) diff -r 6d86e26f0923 -r 518e3f6f9946 prosodyctl --- a/prosodyctl Wed May 05 19:01:14 2010 +0100 +++ b/prosodyctl Wed May 05 20:14:03 2010 +0100 @@ -29,6 +29,14 @@ end end +-- Global 'prosody' object +prosody = { + hosts = {}, + events = require "util.events".new(), + platform = "posix" +}; +local prosody = prosody; + config = require "core.configmanager" do @@ -63,8 +71,6 @@ os.exit(1); end -prosody = { hosts = {}, events = events, platform = "posix" }; - local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data"; require "util.datamanager".set_data_path(data_path);