aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-02-12 04:11:50 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-02-12 04:11:50 +0500
commitffc968aae4622a89f81ea204a5aa3f2373c5e5ab (patch)
treeafb3fb3f264e5fc37cdfcc7706ec05ef04c4d3d0 /plugins/mod_bosh.lua
parent4233a8ccf51fb5a0f5baeb0f3cc674cc2d12fc67 (diff)
downloadprosody-ffc968aae4622a89f81ea204a5aa3f2373c5e5ab.tar.gz
prosody-ffc968aae4622a89f81ea204a5aa3f2373c5e5ab.zip
mod_bosh: Fire stream-features event using new events API.
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua2
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;