diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-19 16:53:50 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-19 16:53:50 +0100 |
commit | 67e111826e24a9ac3a2290eedcf7f1060aa3c33d (patch) | |
tree | 544970261033d3a845b53efbf60cf0933731a0a7 /prosodyctl | |
parent | 48879b4b0d17166786fc0cb6397de79a611e9454 (diff) | |
download | prosody-67e111826e24a9ac3a2290eedcf7f1060aa3c33d.tar.gz prosody-67e111826e24a9ac3a2290eedcf7f1060aa3c33d.zip |
prosodyctl: Remove dependency on hostmanager, and friends
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -32,7 +32,6 @@ end -- Required to be able to find packages installed with luarocks pcall(require, "luarocks.require") - config = require "core.configmanager" do @@ -107,10 +106,15 @@ local error_messages = setmetatable({ ["not-running"] = "Prosody is not running"; }, { __index = function (t,k) return "Error: "..(tostring(k):gsub("%-", " "):gsub("^.", string.upper)); end }); +local events = require "util.events".new(); + hosts = {}; +prosody = { hosts = hosts, events = events }; -require "core.hostmanager" -require "core.eventmanager".fire_event("server-starting"); +for hostname, config in pairs(config.getconfig()) do + hosts[hostname] = { events = events }; +end + require "core.modulemanager" require "util.prosodyctl" |