diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-05-05 20:14:24 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-05-05 20:14:24 +0100 |
commit | 2d20f6c05c62f2bf61ad6e845141087f3ad84f91 (patch) | |
tree | 67a568a0ab55d12cc24462e9cd88750d75c768a4 | |
parent | 61312153477a3517f03fccb37c078302ced77ac3 (diff) | |
download | prosody-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-x | prosodyctl | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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" |