Diff

core/componentmanager.lua @ 1188:fa48e69c4786

core: hosts[*].events
author Waqas Hussain <waqas20@gmail.com>
date Wed, 20 May 2009 05:23:30 +0500
parent 1177:97ecfcec2d71
child 1257:8c9f20d3a17f
line wrap: on
line diff
--- a/core/componentmanager.lua	Tue May 19 13:07:13 2009 +0100
+++ b/core/componentmanager.lua	Wed May 20 05:23:30 2009 +0500
@@ -15,6 +15,7 @@
 local modulemanager = require "core.modulemanager";
 local core_route_stanza = core_route_stanza;
 local jid_split = require "util.jid".split;
+local events_new = require "util.events".new;
 local st = require "util.stanza";
 local hosts = hosts;
 
@@ -81,7 +82,7 @@
 
 function create_component(host, component)
 	-- TODO check for host well-formedness
-	return { type = "component", host = host, connected = true, s2sout = {} };
+	return { type = "component", host = host, connected = true, s2sout = {}, events = events_new() };
 end
 
 function register_component(host, component, session)