Comparison

core/sessionmanager.lua @ 317:dcb5bce69a0f

Removed unused function send_to_session from sessionmanager (send_to_session replaced by session.send)
author Waqas Hussain <waqas20@gmail.com>
date Sun, 16 Nov 2008 05:06:38 +0500
parent 312:63e523629389
child 329:3be63719428e
comparison
equal deleted inserted replaced
316:13e2bd256a20 317:dcb5bce69a0f
51 for k in pairs(session) do 51 for k in pairs(session) do
52 if k ~= "trace" then 52 if k ~= "trace" then
53 session[k] = nil; 53 session[k] = nil;
54 end 54 end
55 end 55 end
56 end
57
58 function send_to_session(session, data)
59 log("debug", "Sending: %s", tostring(data));
60 session.conn.write(tostring(data));
61 end 56 end
62 57
63 function make_authenticated(session, username) 58 function make_authenticated(session, username)
64 session.username = username; 59 session.username = username;
65 if session.type == "c2s_unauthed" then 60 if session.type == "c2s_unauthed" then