diff options
author | Kim Alvefur <zash@zash.se> | 2015-10-11 14:03:53 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-10-11 14:03:53 +0200 |
commit | 617cacab71dfebcb4b41bc9c0a5f5492c4385f1c (patch) | |
tree | 9a1166f9a635c274afcc042197fde9e479aecba9 /plugins | |
parent | b75d87f63d7b0ccbdbdc1e20bac5b4759caaf494 (diff) | |
download | prosody-617cacab71dfebcb4b41bc9c0a5f5492c4385f1c.tar.gz prosody-617cacab71dfebcb4b41bc9c0a5f5492c4385f1c.zip |
mod_s2s: Fire global event for stream features where the remote server has not sent the 'to' stream attribute
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 1 |
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 |