Software /
code /
prosody
Changeset
1041:07835534d996
core.componentmanager: Fix global access
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 22 Apr 2009 20:52:27 +0100 |
parents | 1040:4c79b28bce64 |
children | 1042:a3d77353c18a |
files | core/componentmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/componentmanager.lua Wed Apr 22 20:42:56 2009 +0100 +++ b/core/componentmanager.lua Wed Apr 22 20:52:27 2009 +0100 @@ -80,8 +80,7 @@ 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)