Comparison

core/sessionmanager.lua @ 2622:5ced53147f86

sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan)
author Matthew Wild <mwild1@gmail.com>
date Fri, 12 Feb 2010 17:27:53 +0000
parent 2621:4d0f9f50fdd8
child 2746:3b9547fc0bed
comparison
equal deleted inserted replaced
2621:4d0f9f50fdd8 2622:5ced53147f86
64 end 64 end
65 65
66 return session; 66 return session;
67 end 67 end
68 68
69 local function null_data_handler(data) log("debug", "Discarding data from destroyed c2s session: %s", data); end 69 local function null_data_handler(conn, data) log("debug", "Discarding data from destroyed c2s session: %s", data); end
70 70
71 function destroy_session(session, err) 71 function destroy_session(session, err)
72 (session.log or log)("info", "Destroying session for %s (%s@%s)", session.full_jid or "(unknown)", session.username or "(unknown)", session.host or "(unknown)"); 72 (session.log or log)("info", "Destroying session for %s (%s@%s)", session.full_jid or "(unknown)", session.username or "(unknown)", session.host or "(unknown)");
73 73
74 -- Remove session/resource from user's session list 74 -- Remove session/resource from user's session list