core/sessionmanager.lua

changeset 156
884c43c7028a
parent 150
d09b8a1ab046
child 175
5f71d290bb44
--- a/core/sessionmanager.lua	Fri Oct 24 14:46:22 2008 +0100
+++ b/core/sessionmanager.lua	Fri Oct 24 14:47:23 2008 +0100
@@ -34,7 +34,7 @@
 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;

mercurial