diff options
author | Melanie Thielker | 2008-10-12 18:54:43 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-12 18:54:43 +0000 |
commit | 905fb969f515aed7349fc5494c03fdc8e9bca620 (patch) | |
tree | 94aa5410c97141b364f87292c8e6ad9b56dcbac5 /OpenSim/Region/Environment | |
parent | - Added helper method to compute global coordinates from a fake parcelID (diff) | |
download | opensim-SC_OLD-905fb969f515aed7349fc5494c03fdc8e9bca620.zip opensim-SC_OLD-905fb969f515aed7349fc5494c03fdc8e9bca620.tar.gz opensim-SC_OLD-905fb969f515aed7349fc5494c03fdc8e9bca620.tar.bz2 opensim-SC_OLD-905fb969f515aed7349fc5494c03fdc8e9bca620.tar.xz |
Add a configuration section for groups modules
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs | 20 |
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); |