aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/s2sout.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-05-22 22:48:06 +0200
committerKim Alvefur <zash@zash.se>2014-05-22 22:48:06 +0200
commitb4934b66b964b38ff81f3d51cfc18ecb982af821 (patch)
tree08ef082e5bcc5d9f52132ebc4800e0c97a739a91 /plugins/mod_s2s/s2sout.lib.lua
parent6eef30829cec33b4def141a013b9deb400bd84cb (diff)
downloadprosody-b4934b66b964b38ff81f3d51cfc18ecb982af821.tar.gz
prosody-b4934b66b964b38ff81f3d51cfc18ecb982af821.zip
mod_s2s: Move filter initialization to common place
Diffstat (limited to 'plugins/mod_s2s/s2sout.lib.lua')
-rw-r--r--plugins/mod_s2s/s2sout.lib.lua15
1 files changed, 0 insertions, 15 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua
index 42b4281c..942a618d 100644
--- a/plugins/mod_s2s/s2sout.lib.lua
+++ b/plugins/mod_s2s/s2sout.lib.lua
@@ -297,21 +297,6 @@ function s2sout.make_connect(host_session, connect_host, connect_port)
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);