Software /
code /
prosody
Diff
core/sessionmanager.lua @ 2103:0e0bc74c64a0
sessionmanager: Use : syntax for calling connection methods
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 21 Nov 2009 17:07:22 +0000 |
parent | 1929:b8e6764ffefd |
child | 2144:8e59d37a0e68 |
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);