From 332ebb57f74b37edaabd1c21ee157e217cfd48fb Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 24 May 2014 11:17:26 +0200 Subject: mod_s2s: Fire a 's2s-created' event when new s2s connections are initialized --- plugins/mod_s2s/mod_s2s.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') 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 -- cgit v1.2.3