# HG changeset patch # User Kim Alvefur # Date 1439237582 -7200 # Node ID ef22c17cc24d75fb7cb71daac3e2028544b6e57b # Parent adf2fdf1264a97ae5e1a8ec9c951774e255f91b2 mod_component: Fire an event on successful component authentication (For Goffi) diff -r adf2fdf1264a -r ef22c17cc24d plugins/mod_component.lua --- a/plugins/mod_component.lua Thu Jun 25 17:58:24 2015 +0200 +++ b/plugins/mod_component.lua Mon Aug 10 22:13:02 2015 +0200 @@ -85,6 +85,7 @@ 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