Comparison

net/xmppclient_listener.lua @ 2106:0737b167a997

xmppclient_listener: Switch to .onincoming listener method, to be compatible with new server_event.lua
author Matthew Wild <mwild1@gmail.com>
date Sat, 21 Nov 2009 17:14:59 +0000
parent 2077:e33658f6052c
child 2107:90751c0ca690
comparison
equal deleted inserted replaced
2105:fecf33cb2913 2106:0737b167a997
106 end 106 end
107 107
108 108
109 -- End of session methods -- 109 -- End of session methods --
110 110
111 function xmppclient.listener(conn, data) 111 function xmppclient.onincoming(conn, data)
112 local session = sessions[conn]; 112 local session = sessions[conn];
113 if not session then 113 if not session then
114 session = sm_new_session(conn); 114 session = sm_new_session(conn);
115 sessions[conn] = session; 115 sessions[conn] = session;
116 116