diff options
author | Diva Canto | 2013-05-13 07:29:17 -0700 |
---|---|---|
committer | Diva Canto | 2013-05-13 07:29:17 -0700 |
commit | 25fea820490603227432639dde1305957555abb2 (patch) | |
tree | c7e26e63bff6008d84e1f9ad1dabd37d93dde38f /OpenSim/Addons/Groups/Service | |
parent | Finalize the logic for SetHome. See comments in Land/LandManagementModule.cs ... (diff) | |
download | opensim-SC_OLD-25fea820490603227432639dde1305957555abb2.zip opensim-SC_OLD-25fea820490603227432639dde1305957555abb2.tar.gz opensim-SC_OLD-25fea820490603227432639dde1305957555abb2.tar.bz2 opensim-SC_OLD-25fea820490603227432639dde1305957555abb2.tar.xz |
Fixes mantis #6636 -- Groups
Diffstat (limited to 'OpenSim/Addons/Groups/Service')
-rw-r--r-- | OpenSim/Addons/Groups/Service/GroupsService.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Addons/Groups/Service/GroupsService.cs b/OpenSim/Addons/Groups/Service/GroupsService.cs index 6a4348b..a2ef13a 100644 --- a/OpenSim/Addons/Groups/Service/GroupsService.cs +++ b/OpenSim/Addons/Groups/Service/GroupsService.cs | |||
@@ -130,6 +130,13 @@ namespace OpenSim.Groups | |||
130 | { | 130 | { |
131 | reason = string.Empty; | 131 | reason = string.Empty; |
132 | 132 | ||
133 | // Check if the group already exists | ||
134 | if (m_Database.RetrieveGroup(name) != null) | ||
135 | { | ||
136 | reason = "A group with that name already exists"; | ||
137 | return UUID.Zero; | ||
138 | } | ||
139 | |||
133 | // Create the group | 140 | // Create the group |
134 | GroupData data = new GroupData(); | 141 | GroupData data = new GroupData(); |
135 | data.GroupID = UUID.Random(); | 142 | data.GroupID = UUID.Random(); |