Software /
code /
prosody
Changeset
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 |
parents | 155:8c9a9f6f6455 |
children | 157:f4e9b6ec34b0 |
files | core/sessionmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;