plugins/mod_c2s.lua
changeset 12777 f100c1035576
parent 12681 3b9771d496ed
child 12808 3eef052c72d8
equal deleted inserted replaced
12776:daa654dbd8de 12777:f100c1035576
   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