equal
deleted
inserted
replaced
126 (session.log or log)("info", "Stream encrypted"); |
126 (session.log or log)("info", "Stream encrypted"); |
127 end |
127 end |
128 end |
128 end |
129 |
129 |
130 local features = st.stanza("stream:features"); |
130 local features = st.stanza("stream:features"); |
131 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); |
131 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features, stream = attr }); |
132 if features.tags[1] or session.full_jid then |
132 if features.tags[1] or session.full_jid then |
133 send(features); |
133 send(features); |
134 else |
134 else |
135 if session.secure then |
135 if session.secure then |
136 -- Here SASL should be offered |
136 -- Here SASL should be offered |