Software /
code /
prosody
Comparison
core/componentmanager.lua @ 1066:0cb325970a50
Merge with 0.4
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 29 Apr 2009 02:08:55 +0100 |
parent | 1041:07835534d996 |
parent | 1064:3e945c3938ad |
child | 1100:05d209ef9661 |
comparison
equal
deleted
inserted
replaced
1058:63b7a81d45eb | 1066:0cb325970a50 |
---|---|
101 end | 101 end |
102 | 102 |
103 function deregister_component(host) | 103 function deregister_component(host) |
104 if components[host] then | 104 if components[host] then |
105 modulemanager.unload(host, "dialback"); | 105 modulemanager.unload(host, "dialback"); |
106 host.connected = nil; | 106 hosts[host].connected = nil; |
107 local host_config = configmanager.getconfig()[host]; | 107 local host_config = configmanager.getconfig()[host]; |
108 if host_config and ((host_config.core.enabled == nil or host_config.core.enabled) and type(host_config.core.component_module) == "string") then | 108 if host_config and ((host_config.core.enabled == nil or host_config.core.enabled) and type(host_config.core.component_module) == "string") then |
109 -- Set default handler | 109 -- Set default handler |
110 components[host] = default_component_handler; | 110 components[host] = default_component_handler; |
111 else | 111 else |