Changeset

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
parents 2621:4d0f9f50fdd8
children 2623:1d34b45dec15
files core/s2smanager.lua core/sessionmanager.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Fri Feb 12 17:14:54 2010 +0000
+++ b/core/s2smanager.lua	Fri Feb 12 17:27:53 2010 +0000
@@ -508,7 +508,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, reason)
 	(session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host));
--- 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)");