Software / code / prosody
Comparison
core/componentmanager.lua @ 261:790cf21e2af7
Fix outgoing s2s from components. Fixes #16
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 14 Nov 2008 14:26:56 +0000 |
| parent | 217:d522f3a25dda |
| child | 270:837c7f701a56 |
comparison
equal
deleted
inserted
replaced
| 260:182f0c895676 | 261:790cf21e2af7 |
|---|---|
| 23 | 23 |
| 24 function register_component(host, component) | 24 function register_component(host, component) |
| 25 if not hosts[host] then | 25 if not hosts[host] then |
| 26 -- TODO check for host well-formedness | 26 -- TODO check for host well-formedness |
| 27 components[host] = component; | 27 components[host] = component; |
| 28 hosts[host] = {type = "component", host = host, connected = true}; | 28 hosts[host] = {type = "component", host = host, connected = true, s2sout = {} }; |
| 29 log("debug", "component added: "..host); | 29 log("debug", "component added: "..host); |
| 30 else | 30 else |
| 31 log("error", "Attempt to set component for existing host: "..host); | 31 log("error", "Attempt to set component for existing host: "..host); |
| 32 end | 32 end |
| 33 end | 33 end |