# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1273088106 -3600
# Node ID aad8034ab389aa84b4e9c3e3722588b1d689257b
# Parent  169d096988e15c523ef5ab616073d82aecbd27a8
prosodyctl: Use the global events objects for hosts (again) (thanks albert) (sorry albert)

diff -r 169d096988e1 -r aad8034ab389 prosodyctl
--- a/prosodyctl	Wed May 05 20:14:24 2010 +0100
+++ b/prosodyctl	Wed May 05 20:35:06 2010 +0100
@@ -123,7 +123,7 @@
 hosts = prosody.hosts;
 
 for hostname, config in pairs(config.getconfig()) do
-	hosts[hostname] = { events = require "util.events".new() };
+	hosts[hostname] = { events = prosody.events };
 end
 	
 require "core.modulemanager"