diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-21 17:07:22 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-21 17:07:22 +0000 |
commit | ecb81f3ad2145fc28cbc81c87769cc1cf6ad61d1 (patch) | |
tree | 5bef4052c15fca12be4bdec754a9192281d2221d /core/sessionmanager.lua | |
parent | 49d04cec1d78f63d0107dfb8ee7b151b0db7b552 (diff) | |
download | prosody-ecb81f3ad2145fc28cbc81c87769cc1cf6ad61d1.tar.gz prosody-ecb81f3ad2145fc28cbc81c87769cc1cf6ad61d1.zip |
sessionmanager: Use : syntax for calling connection methods
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r-- | core/sessionmanager.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 08e70d44..7e609f22 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -50,8 +50,8 @@ function new_session(conn) 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); |