# HG changeset patch # User Waqas Hussain # Date 1265929910 -18000 # Node ID 68c43aaf681f14c3eebd56b6f2edb1341bfb350f # Parent 35a5d1c5ea28f23016d36c6c0711c76844a4e8b0 mod_bosh: Fire stream-features event using new events API. diff -r 35a5d1c5ea28 -r 68c43aaf681f plugins/mod_bosh.lua --- 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;