From 0aade7cf5f6f347d1f71335679f97cd54f8f01eb Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 24 Oct 2008 14:47:23 +0100 Subject: Fix for sessionmanager to not throw error when session doesn't have a private logger --- core/sessionmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 2b7659d2..a7858d9e 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -34,7 +34,7 @@ function new_session(conn) end function destroy_session(session) - session.log("info", "Destroying session"); + (session.log or log)("info", "Destroying session"); if session.host and session.username then if session.resource then hosts[session.host].sessions[session.username].sessions[session.resource] = nil; -- cgit v1.2.3