# HG changeset patch # User Matthew Wild # Date 1273086864 -3600 # Node ID 169d096988e15c523ef5ab616073d82aecbd27a8 # Parent 518e3f6f994637b3c744fe7a90112daa6479db61 prosodyctl: Give each host an independant events object, because it seems to be the right thing to do diff -r 518e3f6f9946 -r 169d096988e1 prosodyctl --- 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"