aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-08-10 22:13:02 +0200
committerKim Alvefur <zash@zash.se>2015-08-10 22:13:02 +0200
commit42f35e0009b0097b628268d7c4ea10fbdd63a49f (patch)
treef597c6c7674580ed33d3c4a12c546a4ae7368aaf /plugins
parente3c03ec01dad027c320e4d0505add077fe7f1f29 (diff)
downloadprosody-42f35e0009b0097b628268d7c4ea10fbdd63a49f.tar.gz
prosody-42f35e0009b0097b628268d7c4ea10fbdd63a49f.zip
mod_component: Fire an event on successful component authentication (For Goffi)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_component.lua1
1 files changed, 1 insertions, 0 deletions
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