Diff

plugins/mod_s2s/mod_s2s.lua @ 6905:0e81e3dab896

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 11 Oct 2015 20:03:00 +0200
parent 6861:39789f1669cb
parent 6901:ccc452767ec6
child 7102:250016f5eb7e
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Fri Oct 02 12:17:41 2015 +0200
+++ b/plugins/mod_s2s/mod_s2s.lua	Sun Oct 11 20:03:00 2015 +0200
@@ -352,6 +352,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