aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-05-05 20:14:24 +0100
committerMatthew Wild <mwild1@gmail.com>2010-05-05 20:14:24 +0100
commit2d20f6c05c62f2bf61ad6e845141087f3ad84f91 (patch)
tree67a568a0ab55d12cc24462e9cd88750d75c768a4
parent61312153477a3517f03fccb37c078302ced77ac3 (diff)
downloadprosody-2d20f6c05c62f2bf61ad6e845141087f3ad84f91.tar.gz
prosody-2d20f6c05c62f2bf61ad6e845141087f3ad84f91.zip
prosodyctl: Give each host an independant events object, because it seems to be the right thing to do
-rwxr-xr-xprosodyctl4
1 files changed, 1 insertions, 3 deletions
diff --git a/prosodyctl b/prosodyctl
index 52a96a75..0bc9869d 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -120,12 +120,10 @@ 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;
for hostname, config in pairs(config.getconfig()) do
- hosts[hostname] = { events = events };
+ hosts[hostname] = { events = require "util.events".new() };
end
require "core.modulemanager"