Software /
code /
prosody
Diff
core/sessionmanager.lua @ 156:884c43c7028a
Fix for sessionmanager to not throw error when session doesn't have a private logger
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 24 Oct 2008 14:47:23 +0100 |
parent | 150:d09b8a1ab046 |
child | 175:5f71d290bb44 |
line wrap: on
line diff
--- 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;