prosodyctl: Use the global events objects for hosts (again) (thanks albert) (sorry albert)

Wed, 05 May 2010 20:35:06 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 05 May 2010 20:35:06 +0100
changeset 3015
aad8034ab389
parent 3014
169d096988e1
child 3016
b6046df19898

prosodyctl: Use the global events objects for hosts (again) (thanks albert) (sorry albert)

prosodyctl file | annotate | diff | comparison | revisions
--- 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"

mercurial