aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/mod_s2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-10-11 14:03:53 +0200
committerKim Alvefur <zash@zash.se>2015-10-11 14:03:53 +0200
commit9203db9b4fdf1bee4362061642d741ef040bf181 (patch)
tree9a1166f9a635c274afcc042197fde9e479aecba9 /plugins/mod_s2s/mod_s2s.lua
parent68c49f314ec7bcac01bd38c456b93914d298e2d4 (diff)
downloadprosody-9203db9b4fdf1bee4362061642d741ef040bf181.tar.gz
prosody-9203db9b4fdf1bee4362061642d741ef040bf181.zip
mod_s2s: Fire global event for stream features where the remote server has not sent the 'to' stream attribute
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index 1ecb75da..2fda63ce 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -349,6 +349,7 @@ function stream_callbacks.streamopened(session, attr)
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