# HG changeset patch # User Matthew Wild # Date 1227135037 0 # Node ID b6c552bc5716834a3731d4efbaec1c309c2f200c # Parent 08f89c25e76e62065ae63292f564556434974ee0 Comments and logging fixes diff -r 08f89c25e76e -r b6c552bc5716 core/s2smanager.lua --- a/core/s2smanager.lua Wed Nov 19 22:05:44 2008 +0000 +++ b/core/s2smanager.lua Wed Nov 19 22:50:37 2008 +0000 @@ -105,7 +105,6 @@ local srv_choice = srv_hosts[1]; if srv_choice then - log("debug", "Best record found"); connect_host, connect_port = srv_choice.target or to_host, srv_choice.port or connect_port; log("debug", "Best record found, will connect to %s:%d", connect_host, connect_port); end @@ -145,7 +144,6 @@ session.version = tonumber(attr.version) or 0; if session.version >= 1.0 and not (attr.to and attr.from) then print("to: "..tostring(attr.to).." from: "..tostring(attr.from)); - --error(session.to_host.." failed to specify 'to' or 'from' hostname as per RFC"); log("warn", (session.to_host or "(unknown)").." failed to specify 'to' or 'from' hostname as per RFC"); end @@ -170,18 +168,6 @@ send(st.stanza("stream:features") :tag("dialback", { xmlns='urn:xmpp:features:dialback' }):tag("optional"):up():up()); end - --[[ - local features = {}; - modulemanager.fire_event("stream-features-s2s", session, features); - - send(""); - - for _, feature in ipairs(features) do - send(tostring(feature)); - end - - send(""); - ]] 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