mod_c2s: Include stream attributes in stream-features event

We need this to access 'from' in SASL2/FAST.
This commit is contained in:
Matthew Wild 2022-10-14 11:21:16 +01:00
parent 32c38bc249
commit fdf61a38cf

View file

@ -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