sessionmanager: It's username@host, not host@username :)

Tue, 02 Jun 2009 19:08:36 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 02 Jun 2009 19:08:36 +0100
changeset 1290
c253905a8a55
parent 1289
d0c38cac1687
child 1291
22dcd5f06bc4

sessionmanager: It's username@host, not host@username :)

core/sessionmanager.lua file | annotate | diff | comparison | revisions
--- 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