aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-10-14 11:21:16 +0100
committerMatthew Wild <mwild1@gmail.com>2022-10-14 11:21:16 +0100
commitfdf61a38cfa273c4781dbe578647638106cb7b52 (patch)
tree505e0c7674070c0ae29f9d4c40643b4727ca3b87 /plugins/mod_c2s.lua
parent32c38bc24958581e0c21e4143fbd94e02dde2c22 (diff)
downloadprosody-fdf61a38cfa273c4781dbe578647638106cb7b52.tar.gz
prosody-fdf61a38cfa273c4781dbe578647638106cb7b52.zip
mod_c2s: Include stream attributes in stream-features event
We need this to access 'from' in SASL2/FAST.
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index 2d4186d0..c5a9b42a 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -128,7 +128,7 @@ function stream_callbacks._streamopened(session, attr)
end
local features = st.stanza("stream:features");
- hosts[session.host].events.fire_event("stream-features", { origin = session, features = features });
+ hosts[session.host].events.fire_event("stream-features", { origin = session, features = features, stream = attr });
if features.tags[1] or session.full_jid then
send(features);
else