Mercurial > prosody-hg
comparison core/componentmanager.lua @ 282:80e7de32b618
Merging my new SASL code with Waqas' adjusted saslauth module.
| author | Tobias Markmann <tm@ayena.de> |
|---|---|
| date | Sat, 15 Nov 2008 13:47:17 +0100 |
| parents | 837c7f701a56 |
| children | cccd610a0ef9 |
comparison
equal
deleted
inserted
replaced
| 280:516f4c901991 | 282:80e7de32b618 |
|---|---|
| 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 return hosts[host]; | |
| 30 else | 31 else |
| 31 log("error", "Attempt to set component for existing host: "..host); | 32 log("error", "Attempt to set component for existing host: "..host); |
| 32 end | 33 end |
| 33 end | 34 end |
| 34 | 35 |
