From 051811cd38e05d63bd9c043e466ac744c0c58feb 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(+) (limited to 'plugins/mod_component.lua') 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