plugins/mod_s2s.lua
changeset 11708 0a8671f32424
parent 11688 8b0baf3003fb
child 11709 7132acfd287e
equal deleted inserted replaced
11707:e57c5d9c722c 11708:0a8671f32424
   612 		else
   612 		else
   613 			session:open_stream(session.from_host, session.to_host);
   613 			session:open_stream(session.from_host, session.to_host);
   614 		end
   614 		end
   615 	end
   615 	end
   616 
   616 
   617 	local this_host = session.direction == "incoming" and session.to_host or session.from_host
   617 	local this_host = session.direction == "outgoing" and session.from_host or session.to_host
   618 
   618 
   619 	if reason then -- nil == no err, initiated by us, false == initiated by remote
   619 	if reason then -- nil == no err, initiated by us, false == initiated by remote
   620 		local stream_error;
   620 		local stream_error;
   621 		local condition, text, extra
   621 		local condition, text, extra
   622 		if type(reason) == "string" then -- assume stream error
   622 		if type(reason) == "string" then -- assume stream error