projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d723af1
)
mod_s2s: Fire global event for stream features where the remote server has not sent...
author
Kim Alvefur
<zash@zash.se>
Sun, 11 Oct 2015 12:03:53 +0000
(14:03 +0200)
committer
Kim Alvefur
<zash@zash.se>
Sun, 11 Oct 2015 12:03:53 +0000
(14:03 +0200)
plugins/mod_s2s/mod_s2s.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_s2s/mod_s2s.lua
b/plugins/mod_s2s/mod_s2s.lua
index 1ecb75da9c7594144cd20a112c5377d4278ba62d..2fda63ceb1d60ea7da59e6cb9884592d04b0b01e 100644
(file)
--- 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