core/sessionmanager.lua

changeset 1290
c253905a8a55
parent 1226
3b5f9dac2045
child 1301
d10d84f755b5
--- 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;

mercurial