diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-06-01 01:36:42 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-06-01 01:36:42 +0100 |
commit | f68d9c8e14dedd4bab4a49b9cc9d818b9cc22c65 (patch) | |
tree | 57bb090dfc3a278993148b96bf1832e640c5287a /core/componentmanager.lua | |
parent | a406492eac0743ee7c842defe9622b143992d3da (diff) | |
parent | f87fd81a4a3de75958eb489de371fa6830e48fb2 (diff) | |
download | prosody-f68d9c8e14dedd4bab4a49b9cc9d818b9cc22c65.tar.gz prosody-f68d9c8e14dedd4bab4a49b9cc9d818b9cc22c65.zip |
Automated merge with http://waqas.ath.cx:8000/
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r-- | core/componentmanager.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua index ff60de28..8f624f15 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -89,6 +89,12 @@ function register_component(host, component, session) if not hosts[host] or (hosts[host].type == 'component' and not hosts[host].connected) then components[host] = component; hosts[host] = session or create_component(host, component); + + -- Add events object if not already one + if not hosts[host].events then + hosts[host].events = events_new(); + end + -- add to disco_items if not(host:find("@", 1, true) or host:find("/", 1, true)) and host:find(".", 1, true) then disco_items:set(host:sub(host:find(".", 1, true)+1), host, true); |