diff options
Diffstat (limited to 'OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnectorModule.cs')
-rw-r--r-- | OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnectorModule.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnectorModule.cs b/OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnectorModule.cs index d1c02db..f1cf66c 100644 --- a/OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnectorModule.cs +++ b/OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnectorModule.cs | |||
@@ -74,11 +74,8 @@ namespace OpenSim.Groups | |||
74 | { | 74 | { |
75 | IConfig groupsConfig = config.Configs["Groups"]; | 75 | IConfig groupsConfig = config.Configs["Groups"]; |
76 | string url = groupsConfig.GetString("GroupsServerURI", string.Empty); | 76 | string url = groupsConfig.GetString("GroupsServerURI", string.Empty); |
77 | if (url == string.Empty) | 77 | if (!Uri.IsWellFormedUriString(url, UriKind.Absolute)) |
78 | { | 78 | throw new Exception(string.Format("[Groups.RemoteConnector]: Malformed groups server URL {0}. Fix it or disable the Groups feature.", url)); |
79 | m_log.WarnFormat("[Groups.RemoteConnector]: Groups server URL not provided. Groups will not work."); | ||
80 | return; | ||
81 | } | ||
82 | 79 | ||
83 | m_GroupsService = new GroupsServiceRemoteConnector(url); | 80 | m_GroupsService = new GroupsServiceRemoteConnector(url); |
84 | m_Scenes = new List<Scene>(); | 81 | m_Scenes = new List<Scene>(); |
@@ -273,7 +270,7 @@ namespace OpenSim.Groups | |||
273 | public bool AddGroupRole(string RequestingAgentID, UUID groupID, UUID roleID, string name, string description, string title, ulong powers, out string reason) | 270 | public bool AddGroupRole(string RequestingAgentID, UUID groupID, UUID roleID, string name, string description, string title, ulong powers, out string reason) |
274 | { | 271 | { |
275 | string r = string.Empty; | 272 | string r = string.Empty; |
276 | bool success = m_CacheWrapper.AddGroupRole(roleID, description, name, powers, title, delegate | 273 | bool success = m_CacheWrapper.AddGroupRole(groupID, roleID, description, name, powers, title, delegate |
277 | { | 274 | { |
278 | return m_GroupsService.AddGroupRole(RequestingAgentID, groupID, roleID, name, description, title, powers, out r); | 275 | return m_GroupsService.AddGroupRole(RequestingAgentID, groupID, roleID, name, description, title, powers, out r); |
279 | }); | 276 | }); |