aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-22 20:52:27 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-22 20:52:27 +0100
commita54da72215f3216f3ae28846604bba20e483b831 (patch)
treeae85235eabb39994d0d46ada7507d42c8caef8c1 /core/componentmanager.lua
parent828cb5187b69c46c443c54aa3e5cca1a460bd10a (diff)
downloadprosody-a54da72215f3216f3ae28846604bba20e483b831.tar.gz
prosody-a54da72215f3216f3ae28846604bba20e483b831.zip
core.componentmanager: Fix global access
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r--core/componentmanager.lua3
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)