core/sessionmanager.lua

changeset 3089
69fb1cb6b551
parent 3088
a233aa051125
child 3091
d6a059af2077
--- a/core/sessionmanager.lua	Sat May 22 05:52:24 2010 +0500
+++ b/core/sessionmanager.lua	Sat May 22 05:53:27 2010 +0500
@@ -136,7 +136,7 @@
 		local sessions = hosts[session.host].sessions[session.username].sessions;
 		local limit = config_get(session.host, "core", "max_resources") or 10;
 		if #sessions >= limit then
-			return nil, "cancel", "conflict", "Resource limit reached; only "..limit.." resources allowed";
+			return nil, "cancel", "resource-constraint", "Resource limit reached; only "..limit.." resources allowed";
 		end
 		if sessions[resource] then
 			-- Resource conflict

mercurial