plugins/mod_bosh.lua
changeset 13297 ad1ed84fdf13
parent 13217 50324f66ca2a
child 13464 a688947fab1e
equal deleted inserted replaced
13296:8fbdd878fcf6 13297:ad1ed84fdf13
   454 	context.sid = sid;
   454 	context.sid = sid;
   455 	session.bosh_processing = true; -- Used to suppress replies until processing of this request is done
   455 	session.bosh_processing = true; -- Used to suppress replies until processing of this request is done
   456 
   456 
   457 	if session.notopen then
   457 	if session.notopen then
   458 		local features = st.stanza("stream:features");
   458 		local features = st.stanza("stream:features");
   459 		module:context(session.host):fire_event("stream-features", { origin = session, features = features });
   459 		module:context(session.host):fire_event("stream-features", { origin = session, features = features, stream = attr });
   460 		session.send(features);
   460 		session.send(features);
   461 		session.notopen = nil;
   461 		session.notopen = nil;
   462 	end
   462 	end
   463 end
   463 end
   464 
   464