From 2d20f6c05c62f2bf61ad6e845141087f3ad84f91 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 5 May 2010 20:14:24 +0100 Subject: prosodyctl: Give each host an independant events object, because it seems to be the right thing to do --- prosodyctl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'prosodyctl') 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" -- cgit v1.2.3