Software /
code /
prosody
Comparison
core/componentmanager.lua @ 703:f9909efed20c
componentmanager: Removed unneeded parameter from componentmanager.deregister_component
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 13 Jan 2009 19:17:25 +0500 |
parent | 673:c9bc58e84e96 |
child | 751:7c22619fdb19 |
comparison
equal
deleted
inserted
replaced
702:d344860fdada | 703:f9909efed20c |
---|---|
56 else | 56 else |
57 log("error", "Attempt to set component for existing host: "..host); | 57 log("error", "Attempt to set component for existing host: "..host); |
58 end | 58 end |
59 end | 59 end |
60 | 60 |
61 function deregister_component(host, component) | 61 function deregister_component(host) |
62 if components[host] then | 62 if components[host] then |
63 module_unload(host, "dialback"); | 63 module_unload(host, "dialback"); |
64 components[host] = nil; | 64 components[host] = nil; |
65 hosts[host] = nil; | 65 hosts[host] = nil; |
66 log("debug", "component removed: "..host); | 66 log("debug", "component removed: "..host); |