mod_component: Fire an event on successful component authentication (For Goffi)
authorKim Alvefur <zash@zash.se>
Mon, 10 Aug 2015 20:13:02 +0000 (22:13 +0200)
committerKim Alvefur <zash@zash.se>
Mon, 10 Aug 2015 20:13:02 +0000 (22:13 +0200)
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