diff options
author | Tom | 2010-08-01 10:23:48 -0700 |
---|---|---|
committer | Tom | 2010-08-01 10:23:48 -0700 |
commit | b860c8021e2fcc2522c931d7e503299079924743 (patch) | |
tree | 26d0fccc1c6524d2e66c4483b0b8103cab71b357 | |
parent | Add config option securePermissionsLoading which will stop the region from lo... (diff) | |
download | opensim-SC-b860c8021e2fcc2522c931d7e503299079924743.zip opensim-SC-b860c8021e2fcc2522c931d7e503299079924743.tar.gz opensim-SC-b860c8021e2fcc2522c931d7e503299079924743.tar.bz2 opensim-SC-b860c8021e2fcc2522c931d7e503299079924743.tar.xz |
First, change DefaultPermissionsModule so it returns the correct name...
... Then, make sure we also check the old-style module stack before we throw a tantrum
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 15 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | 2 |
2 files changed, 14 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 9267721..fc67f94 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -357,8 +357,19 @@ namespace OpenSim | |||
357 | { | 357 | { |
358 | if (!scene.RegionModules.ContainsKey(s)) | 358 | if (!scene.RegionModules.ContainsKey(s)) |
359 | { | 359 | { |
360 | m_log.Fatal("[MODULES]: Required module " + s + " not found."); | 360 | bool found = false; |
361 | Environment.Exit(0); | 361 | foreach (IRegionModule m in modules) |
362 | { | ||
363 | if (m.Name == s) | ||
364 | { | ||
365 | found = true; | ||
366 | } | ||
367 | } | ||
368 | if (!found) | ||
369 | { | ||
370 | m_log.Fatal("[MODULES]: Required module " + s + " not found."); | ||
371 | Environment.Exit(0); | ||
372 | } | ||
362 | } | 373 | } |
363 | } | 374 | } |
364 | } | 375 | } |
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs index 1d70546..8223f12 100644 --- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | |||
@@ -402,7 +402,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions | |||
402 | 402 | ||
403 | public string Name | 403 | public string Name |
404 | { | 404 | { |
405 | get { return "PermissionsModule"; } | 405 | get { return "DefaultPermissionsModule"; } |
406 | } | 406 | } |
407 | 407 | ||
408 | public bool IsSharedModule | 408 | public bool IsSharedModule |