aboutsummaryrefslogtreecommitdiffstats
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
commit5243ae5fee6f0428a378691033a950cc9db0595a (patch)
treef597c6c7674580ed33d3c4a12c546a4ae7368aaf
parent48c1abdc57ae3ab5dfe5df027d2476445f13da02 (diff)
downloadprosody-5243ae5fee6f0428a378691033a950cc9db0595a.tar.gz
prosody-5243ae5fee6f0428a378691033a950cc9db0595a.zip
mod_component: Fire an event on successful component authentication (For Goffi)
-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