aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-10-28 13:15:56 +0100
committerMatthew Wild <mwild1@gmail.com>2023-10-28 13:15:56 +0100
commit40c7ebddd110486fc98196debd7ba8a222354874 (patch)
treea9fabb4299a017e80807e5a8cf7a1f48e056a77c /plugins
parent7a9e8092ac4f3d600889f5ce1e4a592dc6353d42 (diff)
downloadprosody-40c7ebddd110486fc98196debd7ba8a222354874.tar.gz
prosody-40c7ebddd110486fc98196debd7ba8a222354874.zip
mod_bosh: Include stream attributes in stream-features event
This matches what mod_c2s does, and fixes a traceback in mod_sasl2_fast when used with BOSH (that module tries to use event.stream.from).
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 125cd24d..f4fec8f0 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -456,7 +456,7 @@ function stream_callbacks.streamopened(context, attr)
if session.notopen then
local features = st.stanza("stream:features");
- module:context(session.host):fire_event("stream-features", { origin = session, features = features });
+ module:context(session.host):fire_event("stream-features", { origin = session, features = features, stream = attr });
session.send(features);
session.notopen = nil;
end