plugins/mod_s2s/mod_s2s.lua
changeset 9068 f3adcc3fce8c
parent 9067 93ac83372ac2
child 9073 21730a3642fe
equal deleted inserted replaced
9067:93ac83372ac2 9068:f3adcc3fce8c
   569 	local filter = initialize_filters(session);
   569 	local filter = initialize_filters(session);
   570 	local conn = session.conn;
   570 	local conn = session.conn;
   571 	local w = conn.write;
   571 	local w = conn.write;
   572 
   572 
   573 	function session.sends2s(t)
   573 	function session.sends2s(t)
   574 		log("debug", "sending: %s", t.top_tag and t:top_tag() or t:match("^[^>]*>?"));
   574 		log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?"));
   575 		if t.name then
   575 		if t.name then
   576 			t = filter("stanzas/out", t);
   576 			t = filter("stanzas/out", t);
   577 		end
   577 		end
   578 		if t then
   578 		if t then
   579 			t = filter("bytes/out", tostring(t));
   579 			t = filter("bytes/out", tostring(t));