# HG changeset patch # User Matthew Wild # Date 1265995673 0 # Node ID d08771a2f6179342b39d241618f37abf0ec7d408 # Parent 6036c4b75235ebd23ec7af775bc3044e203dd000 sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan) diff -r 6036c4b75235 -r d08771a2f617 core/s2smanager.lua --- a/core/s2smanager.lua Fri Feb 12 17:14:54 2010 +0000 +++ b/core/s2smanager.lua Fri Feb 12 17:27:53 2010 +0000 @@ -491,7 +491,7 @@ end end -local function null_data_handler(data) log("debug", "Discarding data from destroyed s2s session: %s", data); end +local function null_data_handler(conn, data) log("debug", "Discarding data from destroyed s2s session: %s", data); end function destroy_session(session) (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)); diff -r 6036c4b75235 -r d08771a2f617 core/sessionmanager.lua --- a/core/sessionmanager.lua Fri Feb 12 17:14:54 2010 +0000 +++ b/core/sessionmanager.lua Fri Feb 12 17:27:53 2010 +0000 @@ -66,7 +66,7 @@ return session; end -local function null_data_handler(data) log("debug", "Discarding data from destroyed c2s session: %s", data); end +local function null_data_handler(conn, data) log("debug", "Discarding data from destroyed c2s session: %s", data); end function destroy_session(session, err) (session.log or log)("info", "Destroying session for %s (%s@%s)", session.full_jid or "(unknown)", session.username or "(unknown)", session.host or "(unknown)");