Software /
code /
prosody
Diff
core/sessionmanager.lua @ 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 |
parent | 531:724fd647dc56 |
child | 563:099d8a102deb |
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