From 5243ae5fee6f0428a378691033a950cc9db0595a Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 10 Aug 2015 22:13:02 +0200 Subject: mod_component: Fire an event on successful component authentication (For Goffi) --- plugins/mod_component.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 7bc0f5b7..11abab79 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -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 -- cgit v1.2.3