From 31fa05ba49d5f4a9f7355455beb7ef7dc895a181 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 3 May 2012 23:18:56 +0100 Subject: sessionmanager: Remove max_resources config option and check, incorrect anyway (thanks Zash) --- core/sessionmanager.lua | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core/sessionmanager.lua') diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index c101bf4e..37c1626a 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -143,10 +143,6 @@ function bind_resource(session, resource) 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; - if #sessions >= limit then - return nil, "cancel", "resource-constraint", "Resource limit reached; only "..limit.." resources allowed"; - end if sessions[resource] then -- Resource conflict local policy = config_get(session.host, "core", "conflict_resolve"); -- cgit v1.2.3