Diff

prosodyctl @ 3015:aad8034ab389

prosodyctl: Use the global events objects for hosts (again) (thanks albert) (sorry albert)
author Matthew Wild <mwild1@gmail.com>
date Wed, 05 May 2010 20:35:06 +0100
parent 3014:169d096988e1
child 3038:6b68355d615a
line wrap: on
line diff
--- 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"