aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_component.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index 808735b7..b2c571d3 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -83,7 +83,6 @@ function handle_component_auth(event)
return true;
end
-
-- Authenticated now
log("info", "Component authenticated: %s", session.host);
@@ -95,14 +94,12 @@ function handle_component_auth(event)
main_session = session;
session.on_destroy = on_destroy;
log("info", "Component successfully registered");
+ session.send(st.stanza("handshake"));
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
- session.send(st.stanza("handshake"));
return true;
end