aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs3
-rw-r--r--OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs5
2 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
index 45617fc..89e2b55 100644
--- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
@@ -27,6 +27,7 @@
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Linq;
30using System.Reflection; 31using System.Reflection;
31using log4net; 32using log4net;
32using Nini.Config; 33using Nini.Config;
@@ -160,7 +161,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
160 string permissionModules = Util.GetConfigVarFromSections<string>(config, "permissionmodules", 161 string permissionModules = Util.GetConfigVarFromSections<string>(config, "permissionmodules",
161 new string[] { "Startup", "Permissions" }, "DefaultPermissionsModule"); 162 new string[] { "Startup", "Permissions" }, "DefaultPermissionsModule");
162 163
163 List<string> modules = new List<string>(permissionModules.Split(',')); 164 List<string> modules = new List<string>(permissionModules.Split(',').Select(m => m.Trim()));
164 165
165 if (!modules.Contains("DefaultPermissionsModule")) 166 if (!modules.Contains("DefaultPermissionsModule"))
166 return; 167 return;
diff --git a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs
index a6d43f1..8b4d231 100644
--- a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs
+++ b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs
@@ -26,8 +26,9 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Reflection;
30using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Linq;
31using System.Reflection;
31using log4net; 32using log4net;
32using Mono.Addins; 33using Mono.Addins;
33using Nini.Config; 34using Nini.Config;
@@ -62,7 +63,7 @@ namespace OpenSim.Region.OptionalModules
62 string permissionModules = Util.GetConfigVarFromSections<string>(config, "permissionmodules", 63 string permissionModules = Util.GetConfigVarFromSections<string>(config, "permissionmodules",
63 new string[] { "Startup", "Permissions" }, "DefaultPermissionsModule"); 64 new string[] { "Startup", "Permissions" }, "DefaultPermissionsModule");
64 65
65 List<string> modules=new List<string>(permissionModules.Split(',')); 66 List<string> modules = new List<string>(permissionModules.Split(',').Select(m => m.Trim()));
66 67
67 if(!modules.Contains("PrimLimitsModule")) 68 if(!modules.Contains("PrimLimitsModule"))
68 return; 69 return;