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 | 309f1467649f3e6c1fb8328b10f41cd75475835b (patch) | |
tree | 919bb0cdd42136ae5cb82d10741daca7967f2d21 /plugins/mod_s2s/mod_s2s.lua | |
parent | a9cb63cf3694f651b500e207639ebd52e9866216 (diff) | |
download | prosody-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.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 |