78 |
78 |
79 if not next(hosts[session.host].sessions[session.username].sessions) then |
79 if not next(hosts[session.host].sessions[session.username].sessions) then |
80 log("debug", "All resources of %s are now offline", session.username); |
80 log("debug", "All resources of %s are now offline", session.username); |
81 hosts[session.host].sessions[session.username] = nil; |
81 hosts[session.host].sessions[session.username] = nil; |
82 end |
82 end |
|
83 else |
|
84 log("error", "host or session table didn't exist, please report this! Host: %s [%s] Sessions: %s [%s]", |
|
85 tostring(hosts[session.host]), tostring(session.host), |
|
86 tostring(hosts[session.host].sessions[session.username] ), tostring(session.username)); |
83 end |
87 end |
84 end |
88 end |
85 |
89 |
86 for k in pairs(session) do |
90 for k in pairs(session) do |
87 if k ~= "trace" then |
91 if k ~= "trace" then |