Software /
code /
prosody
Changeset
532:c24471cadc2c
Added an error log message for this case
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 03 Dec 2008 18:06:04 +0000 |
parents | 531:724fd647dc56 |
children | 535:74f32ac6db40 539:cbcadb1a6166 |
files | core/sessionmanager.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/sessionmanager.lua Wed Dec 03 18:01:56 2008 +0000 +++ b/core/sessionmanager.lua Wed Dec 03 18:06:04 2008 +0000 @@ -80,6 +80,10 @@ log("debug", "All resources of %s are now offline", session.username); hosts[session.host].sessions[session.username] = nil; end + else + log("error", "host or session table didn't exist, please report this! Host: %s [%s] Sessions: %s [%s]", + tostring(hosts[session.host]), tostring(session.host), + tostring(hosts[session.host].sessions[session.username] ), tostring(session.username)); end end