Changeset

2103:0e0bc74c64a0

sessionmanager: Use : syntax for calling connection methods
author Matthew Wild <mwild1@gmail.com>
date Sat, 21 Nov 2009 17:07:22 +0000
parents 2099:73e083d01449
children 2104:466bd2cac62a
files core/sessionmanager.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/sessionmanager.lua	Sat Nov 21 13:15:46 2009 +0000
+++ b/core/sessionmanager.lua	Sat Nov 21 17:07:22 2009 +0000
@@ -50,8 +50,8 @@
 	open_sessions = open_sessions + 1;
 	log("debug", "open sessions now: ".. open_sessions);
 	local w = conn.write;
-	session.send = function (t) w(tostring(t)); end
-	session.ip = conn.ip();
+	session.send = function (t) w(conn, tostring(t)); end
+	session.ip = conn:ip();
 	local conn_name = "c2s"..tostring(conn):match("[a-f0-9]+$");
 	session.log = logger.init(conn_name);