diff options
author | Teravus Ovares | 2007-12-20 06:31:03 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-20 06:31:03 +0000 |
commit | 8aae9094128069b83fbf11cb77503e29fd381b25 (patch) | |
tree | 96515c224150272c435c6b004d0950fcd4f07509 /OpenSim/Region/Environment/Scenes/Scene.cs | |
parent | Added patch from Johan. First attempt to solve the LibSL.Packet GC problem. W... (diff) | |
download | opensim-SC_OLD-8aae9094128069b83fbf11cb77503e29fd381b25.zip opensim-SC_OLD-8aae9094128069b83fbf11cb77503e29fd381b25.tar.gz opensim-SC_OLD-8aae9094128069b83fbf11cb77503e29fd381b25.tar.bz2 opensim-SC_OLD-8aae9094128069b83fbf11cb77503e29fd381b25.tar.xz |
* Added a configuration parameter on the Grid Server to disallow forceful banlists.
* Added a way for Grid based configuration parameters to (generally used in overriding functionality) to get to the regions on Registration.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 01d6c5a..6d2d31f 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -818,6 +818,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
818 | // These two 'commands' *must be* next to each other or sim rebooting fails. | 818 | // These two 'commands' *must be* next to each other or sim rebooting fails. |
819 | m_sceneGridService.RegisterRegion(RegionInfo); | 819 | m_sceneGridService.RegisterRegion(RegionInfo); |
820 | m_sceneGridService.InformNeighborsThatRegionisUp(RegionInfo); | 820 | m_sceneGridService.InformNeighborsThatRegionisUp(RegionInfo); |
821 | Dictionary<string, string> dGridSettings = m_sceneGridService.GetGridSettings(); | ||
822 | if (dGridSettings.ContainsKey("allow_forceful_banlines")) | ||
823 | { | ||
824 | if (dGridSettings["allow_forceful_banlines"] != "TRUE") | ||
825 | MainLog.Instance.Verbose("GRID","Grid is disabling forceful parcel banlists"); | ||
826 | } | ||
821 | } | 827 | } |
822 | 828 | ||
823 | /// <summary> | 829 | /// <summary> |
@@ -1295,6 +1301,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1295 | m_sceneGridService.OnCloseAgentConnection += CloseConnection; | 1301 | m_sceneGridService.OnCloseAgentConnection += CloseConnection; |
1296 | m_sceneGridService.OnRegionUp += OtherRegionUp; | 1302 | m_sceneGridService.OnRegionUp += OtherRegionUp; |
1297 | m_sceneGridService.OnChildAgentUpdate += IncomingChildAgentDataUpdate; | 1303 | m_sceneGridService.OnChildAgentUpdate += IncomingChildAgentDataUpdate; |
1304 | |||
1298 | 1305 | ||
1299 | m_sceneGridService.KillObject = SendKillObject; | 1306 | m_sceneGridService.KillObject = SendKillObject; |
1300 | } | 1307 | } |
@@ -1303,15 +1310,29 @@ namespace OpenSim.Region.Environment.Scenes | |||
1303 | /// | 1310 | /// |
1304 | /// </summary> | 1311 | /// </summary> |
1305 | public void UnRegisterReginWithComms() | 1312 | public void UnRegisterReginWithComms() |
1306 | { | 1313 | { |
1314 | |||
1307 | m_sceneGridService.OnChildAgentUpdate -= IncomingChildAgentDataUpdate; | 1315 | m_sceneGridService.OnChildAgentUpdate -= IncomingChildAgentDataUpdate; |
1308 | m_sceneGridService.OnRegionUp -= OtherRegionUp; | 1316 | m_sceneGridService.OnRegionUp -= OtherRegionUp; |
1309 | m_sceneGridService.OnExpectUser -= NewUserConnection; | 1317 | m_sceneGridService.OnExpectUser -= NewUserConnection; |
1310 | m_sceneGridService.OnAvatarCrossingIntoRegion -= AgentCrossing; | 1318 | m_sceneGridService.OnAvatarCrossingIntoRegion -= AgentCrossing; |
1311 | m_sceneGridService.OnCloseAgentConnection -= CloseConnection; | 1319 | m_sceneGridService.OnCloseAgentConnection -= CloseConnection; |
1312 | 1320 | ||
1313 | m_sceneGridService.Close(); | 1321 | m_sceneGridService.Close(); |
1314 | } | 1322 | } |
1323 | public void NewIncomingGridSetting(ulong regionHandle, string key, string gvalue) | ||
1324 | { | ||
1325 | if (key == "allow_forceful_banlines") | ||
1326 | { | ||
1327 | if (gvalue == "FALSE") | ||
1328 | { | ||
1329 | MainLog.Instance.Verbose("INTERGRID", "Grid is disallowing forcefull banlines"); | ||
1330 | //Ming, Do stuff here | ||
1331 | } | ||
1332 | } | ||
1333 | |||
1334 | |||
1335 | } | ||
1315 | 1336 | ||
1316 | /// <summary> | 1337 | /// <summary> |
1317 | /// | 1338 | /// |