# HG changeset patch # User Matthew Wild # Date 1336083536 -3600 # Node ID 77da9671ac3918b71e0036325685b01826434903 # Parent 5bcdc384e48505dd3bc6b37f6f7e8a36ecfb068d sessionmanager: Remove max_resources config option and check, incorrect anyway (thanks Zash) diff -r 5bcdc384e485 -r 77da9671ac39 core/sessionmanager.lua --- a/core/sessionmanager.lua Thu May 03 18:59:06 2012 +0100 +++ b/core/sessionmanager.lua Thu May 03 23:18:56 2012 +0100 @@ -143,10 +143,6 @@ 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");