aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
index 053eeef..5495f5a 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
@@ -53,6 +53,26 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups
53 53
54 public void Initialise(Scene scene, IConfigSource config) 54 public void Initialise(Scene scene, IConfigSource config)
55 { 55 {
56 IConfig groupsConfig = config.Configs["Groups"];
57
58 if (groupsConfig == null)
59 {
60 m_log.Info("[GROUPS] No configuration found. Using defaults");
61 }
62 else
63 {
64 if (!groupsConfig.GetBoolean("Enabled", false))
65 {
66 m_log.Info("[GROUPS] Groups disabled in configuration");
67 return;
68 }
69
70 if (groupsConfig.GetString("Module", "Default") != "Default")
71 return;
72 }
73
74 m_log.Info("[GROUPS] Activated default groups module");
75
56 lock (m_scene) 76 lock (m_scene)
57 { 77 {
58 m_scene.Add(scene); 78 m_scene.Add(scene);