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).
pull/27/head
Matthew Wild 3 years ago
parent 7a9e8092ac
commit 40c7ebddd1
  1. 2
      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

Loading…
Cancel
Save