Comparison

plugins/mod_c2s.lua @ 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
parent 5669:9345c161481f
child 5759:767e29b2cd3a
comparison
equal deleted inserted replaced
5747:23076ee191d3 5748:cef2a1122b43
77 end 77 end
78 end 78 end
79 79
80 local features = st.stanza("stream:features"); 80 local features = st.stanza("stream:features");
81 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); 81 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features });
82 module:fire_event("stream-features", session, features);
83
84 send(features); 82 send(features);
85 end 83 end
86 84
87 function stream_callbacks.streamclosed(session) 85 function stream_callbacks.streamclosed(session)
88 session.log("debug", "Received </stream:stream>"); 86 session.log("debug", "Received </stream:stream>");