Diff

core/s2smanager.lua @ 1686:232c2bf155c7

core.s2smanager, xmppserver_listener: Move the responsibility of setting session.log from the latter to the former for incoming sessions (outgoing are already like this)
author Matthew Wild <mwild1@gmail.com>
date Sun, 16 Aug 2009 21:41:53 +0100
parent 1523:841d61be198f
child 1792:407f282f559e
line wrap: on
line diff
--- a/core/s2smanager.lua	Sun Aug 16 21:37:47 2009 +0100
+++ b/core/s2smanager.lua	Sun Aug 16 21:41:53 2009 +0100
@@ -126,6 +126,7 @@
 	end
 	open_sessions = open_sessions + 1;
 	local w, log = conn.write, logger_init("s2sin"..tostring(conn):match("[a-f0-9]+$"));
+	session.log = log;
 	session.sends2s = function (t) log("debug", "sending: %s", tostring(t)); w(tostring(t)); end
 	incoming_s2s[session] = true;
 	return session;