--- a/prosodyctl Wed May 05 20:14:03 2010 +0100
+++ b/prosodyctl Wed May 05 20:14:24 2010 +0100
@@ -120,12 +120,10 @@
["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;
for hostname, config in pairs(config.getconfig()) do
- hosts[hostname] = { events = events };
+ hosts[hostname] = { events = require "util.events".new() };
end
require "core.modulemanager"