diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-22 20:52:27 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-22 20:52:27 +0100 |
commit | a54da72215f3216f3ae28846604bba20e483b831 (patch) | |
tree | ae85235eabb39994d0d46ada7507d42c8caef8c1 | |
parent | 828cb5187b69c46c443c54aa3e5cca1a460bd10a (diff) | |
download | prosody-a54da72215f3216f3ae28846604bba20e483b831.tar.gz prosody-a54da72215f3216f3ae28846604bba20e483b831.zip |
core.componentmanager: Fix global access
-rw-r--r-- | core/componentmanager.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua index 96b78bf2..77d11f99 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -80,8 +80,7 @@ end function create_component(host, component) -- TODO check for host well-formedness - local session = session or { type = "component", host = host, connected = true, s2sout = {} }; - return session; + return { type = "component", host = host, connected = true, s2sout = {} }; end function register_component(host, component, session) |