aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/mod_s2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-05-24 11:17:26 +0200
committerKim Alvefur <zash@zash.se>2014-05-24 11:17:26 +0200
commit309f1467649f3e6c1fb8328b10f41cd75475835b (patch)
tree919bb0cdd42136ae5cb82d10741daca7967f2d21 /plugins/mod_s2s/mod_s2s.lua
parenta9cb63cf3694f651b500e207639ebd52e9866216 (diff)
downloadprosody-309f1467649f3e6c1fb8328b10f41cd75475835b.tar.gz
prosody-309f1467649f3e6c1fb8328b10f41cd75475835b.zip
mod_s2s: Fire a 's2s-created' event when new s2s connections are initialized
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index 4fd71e87..3de59d35 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -576,6 +576,8 @@ local function initialize_session(session)
return handlestanza(session, stanza);
end
+ module:fire_event("s2s-created", { session = session });
+
add_task(connect_timeout, function ()
if session.type == "s2sin" or session.type == "s2sout" then
return; -- Ok, we're connected