aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_component.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index 1de576a0..996a983e 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -69,6 +69,8 @@ function handle_component_auth(event)
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