Diff

plugins/mod_s2s/s2sout.lib.lua @ 6258:8a01bce29834

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 24 May 2014 01:27:09 +0200 (2014-05-23)
parent 6256:d05627c89c99
child 6632:855085439f7f
line wrap: on
line diff
--- a/plugins/mod_s2s/s2sout.lib.lua	Fri May 23 20:37:16 2014 +0100
+++ b/plugins/mod_s2s/s2sout.lib.lua	Sat May 24 01:27:09 2014 +0200
@@ -297,21 +297,6 @@
 	conn = wrapclient(conn, connect_host.addr, connect_port, s2s_listener, "*a");
 	host_session.conn = conn;
 
-	local filter = initialize_filters(host_session);
-	local w, log = conn.write, host_session.log;
-	host_session.sends2s = function (t)
-		log("debug", "sending: %s", (t.top_tag and t:top_tag()) or t:match("^[^>]*>?"));
-		if t.name then
-			t = filter("stanzas/out", t);
-		end
-		if t then
-			t = filter("bytes/out", tostring(t));
-			if t then
-				return w(conn, tostring(t));
-			end
-		end
-	end
-
 	-- Register this outgoing connection so that xmppserver_listener knows about it
 	-- otherwise it will assume it is a new incoming connection
 	s2s_listener.register_outgoing(conn, host_session);