Software /
code /
prosody
Changeset
5748:cef2a1122b43
mod_bosh, mod_c2s: No longer fire stream-features globally (nobody uses it, and shared modules make it easy for global modules to hook per-host now)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 15 Jul 2013 11:44:49 +0100 |
parents | 5747:23076ee191d3 |
children | 5749:60b3b6d27364 |
files | plugins/mod_bosh.lua plugins/mod_c2s.lua |
diffstat | 2 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Mon Jul 15 11:43:23 2013 +0100 +++ b/plugins/mod_bosh.lua Mon Jul 15 11:44:49 2013 +0100 @@ -349,7 +349,6 @@ 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; end
--- a/plugins/mod_c2s.lua Mon Jul 15 11:43:23 2013 +0100 +++ b/plugins/mod_c2s.lua Mon Jul 15 11:44:49 2013 +0100 @@ -79,8 +79,6 @@ local features = st.stanza("stream:features"); hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); - module:fire_event("stream-features", session, features); - send(features); end