Software /
code /
prosody
Changeset
2608:68c43aaf681f
mod_bosh: Fire stream-features event using new events API.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 12 Feb 2010 04:11:50 +0500 |
parents | 2607:35a5d1c5ea28 |
children | 2609:2ee28cae530a |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Fri Feb 12 03:50:44 2010 +0500 +++ b/plugins/mod_bosh.lua Fri Feb 12 04:11:50 2010 +0500 @@ -206,6 +206,7 @@ -- Send creation response local features = st.stanza("stream:features"); + hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); fire_event("stream-features", session, features); --xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh' local response = st.stanza("body", { xmlns = xmlns_bosh, @@ -257,6 +258,7 @@ if session.notopen then local features = st.stanza("stream:features"); + hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); fire_event("stream-features", session, features); session.send(features); session.notopen = nil;