diff options
author | Melanie | 2010-09-30 20:01:55 +0200 |
---|---|---|
committer | Melanie | 2010-09-30 20:01:55 +0200 |
commit | 7ad1b60ecaa64ae693be48df9a32cb93bb22e76f (patch) | |
tree | 58e1281481d479401c922cea32fb2878b17336bc /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
download | opensim-SC_OLD-7ad1b60ecaa64ae693be48df9a32cb93bb22e76f.zip opensim-SC_OLD-7ad1b60ecaa64ae693be48df9a32cb93bb22e76f.tar.gz opensim-SC_OLD-7ad1b60ecaa64ae693be48df9a32cb93bb22e76f.tar.bz2 opensim-SC_OLD-7ad1b60ecaa64ae693be48df9a32cb93bb22e76f.tar.xz |
Enforce region agent limit as set in estate tools
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 240d33c..e835281 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3856,6 +3856,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
3856 | 3856 | ||
3857 | // We have to wait until the viewer contacts this region after receiving EAC. | 3857 | // We have to wait until the viewer contacts this region after receiving EAC. |
3858 | // That calls AddNewClient, which finally creates the ScenePresence | 3858 | // That calls AddNewClient, which finally creates the ScenePresence |
3859 | int num = m_sceneGraph.GetNumberOfScenePresences(); | ||
3860 | |||
3861 | if (num >= RegionInfo.RegionSettings.AgentLimit) | ||
3862 | { | ||
3863 | if (!Permissions.IsAdministrator(cAgentData.AgentID)) | ||
3864 | return false; | ||
3865 | } | ||
3866 | |||
3859 | ScenePresence childAgentUpdate = WaitGetScenePresence(cAgentData.AgentID); | 3867 | ScenePresence childAgentUpdate = WaitGetScenePresence(cAgentData.AgentID); |
3860 | if (childAgentUpdate != null) | 3868 | if (childAgentUpdate != null) |
3861 | { | 3869 | { |