aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/mod_s2s.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-10 22:59:01 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-10 22:59:01 +0100
commitb47f264e2a9d27cdd0ed32e21439224c2dbefe76 (patch)
treef52cc11c6af4453e4f5c9cc11b553627fd5f1a75 /plugins/mod_s2s/mod_s2s.lua
parent6182580f6518a15abc5bfde7a973a5e5f37afebc (diff)
downloadprosody-b47f264e2a9d27cdd0ed32e21439224c2dbefe76.tar.gz
prosody-b47f264e2a9d27cdd0ed32e21439224c2dbefe76.zip
mod_s2s, s2smanager, mod_dialback: Move addition of session.send() on s2sin to after they are authenticated (thus from mod_s2s to s2smanager). Update mod_dialback to fire route/remote directly, as session.send() is no longer available for s2sin_unauthed. Fixes #291.
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index 3087ba24..61812a1e 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -253,11 +253,6 @@ function stream_callbacks.streamopened(session, attr)
log("debug", "Sending stream features: %s", tostring(features));
send(features);
end
-
- local host_session = hosts[to];
- session.send = function(stanza)
- host_session.events.fire_event("route/remote", { from_host = to, to_host = from, stanza = stanza})
- end;
elseif session.direction == "outgoing" then
-- If we are just using the connection for verifying dialback keys, we won't try and auth it
if not attr.id then error("stream response did not give us a streamid!!!"); end