diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-02-12 04:11:50 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-02-12 04:11:50 +0500 |
commit | ffc968aae4622a89f81ea204a5aa3f2373c5e5ab (patch) | |
tree | afb3fb3f264e5fc37cdfcc7706ec05ef04c4d3d0 | |
parent | 4233a8ccf51fb5a0f5baeb0f3cc674cc2d12fc67 (diff) | |
download | prosody-ffc968aae4622a89f81ea204a5aa3f2373c5e5ab.tar.gz prosody-ffc968aae4622a89f81ea204a5aa3f2373c5e5ab.zip |
mod_bosh: Fire stream-features event using new events API.
-rw-r--r-- | plugins/mod_bosh.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index f25e7670..2cb3100e 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -206,6 +206,7 @@ function stream_callbacks.streamopened(request, attr) -- 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 @@ function stream_callbacks.streamopened(request, attr) 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; |