Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 2606:c3fe88d4b921
sessionmanager: Fire stream-features event using new events API.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 12 Feb 2010 03:49:05 +0500 |
parent | 2591:d540a75a11db |
child | 2621:4d0f9f50fdd8 |
comparison
equal
deleted
inserted
replaced
2605:ade70495fe7f | 2606:c3fe88d4b921 |
---|---|
188 if session.secure == false then | 188 if session.secure == false then |
189 session.secure = true; | 189 session.secure = true; |
190 end | 190 end |
191 | 191 |
192 local features = st.stanza("stream:features"); | 192 local features = st.stanza("stream:features"); |
193 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); | |
193 fire_event("stream-features", session, features); | 194 fire_event("stream-features", session, features); |
194 | 195 |
195 send(features); | 196 send(features); |
196 | 197 |
197 end | 198 end |