Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 5658:97c1c1bdd7bc
mod_bosh: Don't tostring() stream:features when passing to session.send().
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 07 Jun 2013 16:26:08 -0400 |
parent | 5654:020c5cd6eb28 |
child | 5660:df077bc8f019 |
comparison
equal
deleted
inserted
replaced
5657:7957f14038e8 | 5658:97c1c1bdd7bc |
---|---|
350 | 350 |
351 if session.notopen then | 351 if session.notopen then |
352 local features = st.stanza("stream:features"); | 352 local features = st.stanza("stream:features"); |
353 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); | 353 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); |
354 fire_event("stream-features", session, features); | 354 fire_event("stream-features", session, features); |
355 session.send(tostring(features)); | 355 session.send(features); |
356 session.notopen = nil; | 356 session.notopen = nil; |
357 end | 357 end |
358 end | 358 end |
359 | 359 |
360 function stream_callbacks.handlestanza(context, stanza) | 360 function stream_callbacks.handlestanza(context, stanza) |