# HG changeset patch # User Matthew Wild # Date 1335562644 -3600 # Node ID 4d43dbd6de179ba7501d52d49dd2d6a74d86c04f # Parent 791388f90156dd8af18a1a248bf6c211ae7c92e4 mod_component: Return true after denying a second component connection for a host (thanks xnyhps) diff -r 791388f90156 -r 4d43dbd6de17 plugins/mod_component.lua --- a/plugins/mod_component.lua Fri Apr 27 22:36:35 2012 +0100 +++ b/plugins/mod_component.lua Fri Apr 27 22:37:24 2012 +0100 @@ -69,6 +69,7 @@ if env.connected then module:log("error", "Second component attempted to connect, denying connection"); session:close{ condition = "conflict", text = "Component already connected" }; + return true; end env.connected = true;