# HG changeset patch # User Kim Alvefur # Date 1444565033 -7200 # Node ID ccc452767ec6065841bde39feb2511cc20f57b82 # Parent 44a7e9152b9a73d44ab98b1a8d6941f7f4e2c17f mod_s2s: Fire global event for stream features where the remote server has not sent the 'to' stream attribute diff -r 44a7e9152b9a -r ccc452767ec6 plugins/mod_s2s/mod_s2s.lua --- 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