diff options
author | Kim Alvefur <zash@zash.se> | 2014-05-24 11:17:26 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-05-24 11:17:26 +0200 |
commit | 332ebb57f74b37edaabd1c21ee157e217cfd48fb (patch) | |
tree | 919bb0cdd42136ae5cb82d10741daca7967f2d21 /plugins/mod_s2s/mod_s2s.lua | |
parent | 55756cdd3c6a37184a13ba3ea405f1842739d177 (diff) | |
download | prosody-332ebb57f74b37edaabd1c21ee157e217cfd48fb.tar.gz prosody-332ebb57f74b37edaabd1c21ee157e217cfd48fb.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.lua | 2 |
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 |