sessionmanager: Make session.send() return true unless there really is an error ...
[prosody.git] / plugins / mod_component.lua
index 7bc0f5b76dcc1814fdc65e6c65b8dbe776727d16..11abab799e3b2be35979ad4ba3ccc87e287ca22f 100644 (file)
@@ -85,6 +85,7 @@ function module.add_host(module)
                session.type = "component";
                module:log("info", "External component successfully authenticated");
                session.send(st.stanza("handshake"));
+               module:fire_event("component-authenticated", { session = session });
        
                return true;
        end