Software /
code /
prosody
Diff
core/sessionmanager.lua @ 1290:c253905a8a55
sessionmanager: It's username@host, not host@username :)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 02 Jun 2009 19:08:36 +0100 |
parent | 1226:3b5f9dac2045 |
child | 1301:d10d84f755b5 |
line wrap: on
line diff
--- a/core/sessionmanager.lua Tue Jun 02 21:22:24 2009 +0500 +++ b/core/sessionmanager.lua Tue Jun 02 19:08:36 2009 +0100 @@ -105,7 +105,7 @@ if not hosts[session.host].sessions[session.username] then local sessions = { sessions = {} }; hosts[session.host].sessions[session.username] = sessions; - bare_sessions[session.host..'@'..session.username] = sessions; + bare_sessions[session.username..'@'..session.host] = sessions; else local sessions = hosts[session.host].sessions[session.username].sessions; local limit = config_get(session.host, "core", "max_resources") or 10;