xmlhandlers: Fixed indentation and added some semicolons.
[prosody.git] / prosodyctl
index fd9bbe2f2a4872f5902c13f73a93b0e141d09b9b..1c82d4584b0d1eb5d3956e97333414f42d9bbc38 100755 (executable)
@@ -60,13 +60,15 @@ do
        end
 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);
 
 -- Switch away from root and into the prosody user --
 local switched_user, current_uid;
 
-local want_pposix_version = "0.3.2";
+local want_pposix_version = "0.3.3";
 local ok, pposix = pcall(require, "util.pposix");
 
 if ok and pposix then
@@ -111,8 +113,7 @@ local error_messages = setmetatable({
 
 local events = require "util.events".new();
 
-hosts = {};
-prosody = { hosts = hosts, events = events };
+hosts = prosody.hosts;
 
 for hostname, config in pairs(config.getconfig()) do
        hosts[hostname] = { events = events };