Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 1301:d10d84f755b5
sessionmanager: It really is username@host, not host@username :)
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 04 Jun 2009 05:54:32 +0500 |
parent | 1290:c253905a8a55 |
child | 1379:03d8a930053f |
comparison
equal
deleted
inserted
replaced
1295:ead6d78d2217 | 1301:d10d84f755b5 |
---|---|
70 full_sessions[session.full_jid] = nil; | 70 full_sessions[session.full_jid] = nil; |
71 | 71 |
72 if not next(hosts[session.host].sessions[session.username].sessions) then | 72 if not next(hosts[session.host].sessions[session.username].sessions) then |
73 log("debug", "All resources of %s are now offline", session.username); | 73 log("debug", "All resources of %s are now offline", session.username); |
74 hosts[session.host].sessions[session.username] = nil; | 74 hosts[session.host].sessions[session.username] = nil; |
75 bare_sessions[session.host..'@'..session.username] = nil; | 75 bare_sessions[session.username..'@'..session.host] = nil; |
76 end | 76 end |
77 end | 77 end |
78 | 78 |
79 for k in pairs(session) do | 79 for k in pairs(session) do |
80 if k ~= "trace" then | 80 if k ~= "trace" then |