Comparison

plugins/mod_bosh.lua @ 5640:4f1889672063

Merge 0.9->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 02 Jun 2013 19:27:45 +0200
parent 5635:84d3d7b69f9a
parent 5639:7a0e19e649b7
child 5645:ae079d57af2e
comparison
equal deleted inserted replaced
5638:c5b7f4858014 5640:4f1889672063
344 344
345 if session.notopen then 345 if session.notopen then
346 local features = st.stanza("stream:features"); 346 local features = st.stanza("stream:features");
347 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); 347 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features });
348 fire_event("stream-features", session, features); 348 fire_event("stream-features", session, features);
349 table.insert(session.send_buffer, tostring(features)); 349 session.send(tostring(features));
350 session.notopen = nil; 350 session.notopen = nil;
351 end 351 end
352 end 352 end
353 353
354 function stream_callbacks.handlestanza(context, stanza) 354 function stream_callbacks.handlestanza(context, stanza)