Software /
code /
prosody
Diff
plugins/mod_component.lua @ 3587:d94aacb2771a
componentmanager, hostmanager, modulemanager, mod_component: Got rid of the useless hosts[*].connected property.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 10 Nov 2010 03:39:38 +0500 |
parent | 3581:3f3f8227ba76 |
child | 3604:3e89f0509967 |
line wrap: on
line diff
--- a/plugins/mod_component.lua Wed Nov 10 02:51:36 2010 +0500 +++ b/plugins/mod_component.lua Wed Nov 10 03:39:38 2010 +0500 @@ -29,7 +29,6 @@ main_session = nil; send = nil; session.on_destroy = nil; - hosts[session.host].connected = nil; end end @@ -98,7 +97,6 @@ send = session.send; main_session = session; session.on_destroy = on_destroy; - hosts[session.host].connected = true; log("info", "Component successfully registered"); else log("error", "Multiple components bound to the same address, first one wins (TODO: Implement stanza distribution)");