--- a/plugins/mod_component.lua Tue Nov 09 20:22:08 2010 +0500 +++ b/plugins/mod_component.lua Tue Nov 09 20:23:28 2010 +0500 @@ -69,6 +69,8 @@ log("info", "Component successfully registered"); else log("error", "Multiple components bound to the same address, first one wins (TODO: Implement stanza distribution)"); + session:close{ condition = "conflict", text = "Component already connected" }; + return true; end -- Signal successful authentication