Comparison

plugins/mod_bosh.lua @ 5748:cef2a1122b43

mod_bosh, mod_c2s: No longer fire stream-features globally (nobody uses it, and shared modules make it easy for global modules to hook per-host now)
author Matthew Wild <mwild1@gmail.com>
date Mon, 15 Jul 2013 11:44:49 +0100
parent 5729:8de1f9290588
child 5776:bd0ff8ae98a8
comparison
equal deleted inserted replaced
5747:23076ee191d3 5748:cef2a1122b43
347 session.bosh_processing = true; -- Used to suppress replies until processing of this request is done 347 session.bosh_processing = true; -- Used to suppress replies until processing of this request is done
348 348
349 if session.notopen then 349 if session.notopen then
350 local features = st.stanza("stream:features"); 350 local features = st.stanza("stream:features");
351 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); 351 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features });
352 fire_event("stream-features", session, features);
353 session.send(features); 352 session.send(features);
354 session.notopen = nil; 353 session.notopen = nil;
355 end 354 end
356 end 355 end
357 356