From 1835139203be72741b50efaba1d7c1071542972a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 27 Apr 2012 22:37:24 +0100 Subject: mod_component: Return true after denying a second component connection for a host (thanks xnyhps) --- plugins/mod_component.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_component.lua') diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 5b1eefc7..98eaa6de 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -69,6 +69,7 @@ function module.add_host(module) 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; -- cgit v1.2.3