From 61312153477a3517f03fccb37c078302ced77ac3 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 5 May 2010 20:14:03 +0100 Subject: prosodyctl: Relocate global prosody object creation (see fff153f7f4de) --- prosodyctl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index ccc1e2f9..52a96a75 100755 --- a/prosodyctl +++ b/prosodyctl @@ -29,6 +29,14 @@ if CFG_DATADIR then 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 @@ if not require "util.dependencies".check_dependencies() then 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); -- cgit v1.2.3