Software /
code /
prosody
Changeset
6901:ccc452767ec6
mod_s2s: Fire global event for stream features where the remote server has not sent the 'to' stream attribute
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 11 Oct 2015 14:03:53 +0200 |
parents | 6900:44a7e9152b9a |
children | 6903:5ff42d85d4d5 |
files | plugins/mod_s2s/mod_s2s.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Tue Oct 06 18:08:58 2015 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Sun Oct 11 14:03:53 2015 +0200 @@ -349,6 +349,7 @@ hosts[to].events.fire_event("s2s-stream-features", { origin = session, features = features }); else (session.log or log)("warn", "No 'to' on stream header from %s means we can't offer any features", from or session.ip or "unknown host"); + fire_global_event("s2s-stream-features-legacy", { origin = session, features = features }); end if ( session.type == "s2sin" or session.type == "s2sout" ) or features.tags[1] then