diff options
* May fix mantis #4603.
* My local git wants to commit the groups files for line endings, I'm gonna let it do it.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs index 4867c01..669373f 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs | |||
@@ -203,12 +203,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
203 | return; | 203 | return; |
204 | } | 204 | } |
205 | 205 | ||
206 | m_log.InfoFormat("[GROUPS-CONNECTOR]: Initializing {0}", this.Name); | 206 | m_log.InfoFormat("[GROUPS-CONNECTOR]: Initializing {0}", this.Name); |
207 | 207 | ||
208 | m_groupsServerURI = groupsConfig.GetString("GroupsServerURI", string.Empty); | 208 | m_groupsServerURI = groupsConfig.GetString("GroupsServerURI", string.Empty); |
209 | if ((m_groupsServerURI == null) || | 209 | if ((m_groupsServerURI == null) || |
210 | (m_groupsServerURI == string.Empty)) | 210 | (m_groupsServerURI == string.Empty)) |
211 | { | 211 | { |
212 | m_log.ErrorFormat("Please specify a valid Simian Server for GroupsServerURI in OpenSim.ini, [Groups]"); | 212 | m_log.ErrorFormat("Please specify a valid Simian Server for GroupsServerURI in OpenSim.ini, [Groups]"); |
213 | m_connectorEnabled = false; | 213 | m_connectorEnabled = false; |
214 | return; | 214 | return; |
@@ -1000,53 +1000,53 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1000 | SimianAddGeneric(groupID, "GroupNotice", noticeID.ToString(), Notice); | 1000 | SimianAddGeneric(groupID, "GroupNotice", noticeID.ToString(), Notice); |
1001 | 1001 | ||
1002 | } | 1002 | } |
1003 | #endregion | 1003 | #endregion |
1004 | 1004 | ||
1005 | #region GroupSessionTracking | 1005 | #region GroupSessionTracking |
1006 | 1006 | ||
1007 | public void ResetAgentGroupChatSessions(UUID agentID) | 1007 | public void ResetAgentGroupChatSessions(UUID agentID) |
1008 | { | 1008 | { |
1009 | Dictionary<string, OSDMap> agentSessions; | 1009 | Dictionary<string, OSDMap> agentSessions; |
1010 | 1010 | ||
1011 | if (SimianGetGenericEntries(agentID, "GroupSessionDropped", out agentSessions)) | 1011 | if (SimianGetGenericEntries(agentID, "GroupSessionDropped", out agentSessions)) |
1012 | { | 1012 | { |
1013 | foreach (string GroupID in agentSessions.Keys) | 1013 | foreach (string GroupID in agentSessions.Keys) |
1014 | { | 1014 | { |
1015 | SimianRemoveGenericEntry(agentID, "GroupSessionDropped", GroupID); | 1015 | SimianRemoveGenericEntry(agentID, "GroupSessionDropped", GroupID); |
1016 | } | 1016 | } |
1017 | } | 1017 | } |
1018 | 1018 | ||
1019 | if (SimianGetGenericEntries(agentID, "GroupSessionInvited", out agentSessions)) | 1019 | if (SimianGetGenericEntries(agentID, "GroupSessionInvited", out agentSessions)) |
1020 | { | 1020 | { |
1021 | foreach (string GroupID in agentSessions.Keys) | 1021 | foreach (string GroupID in agentSessions.Keys) |
1022 | { | 1022 | { |
1023 | SimianRemoveGenericEntry(agentID, "GroupSessionInvited", GroupID); | 1023 | SimianRemoveGenericEntry(agentID, "GroupSessionInvited", GroupID); |
1024 | } | 1024 | } |
1025 | } | 1025 | } |
1026 | } | 1026 | } |
1027 | 1027 | ||
1028 | public bool hasAgentDroppedGroupChatSession(UUID agentID, UUID groupID) | 1028 | public bool hasAgentDroppedGroupChatSession(UUID agentID, UUID groupID) |
1029 | { | 1029 | { |
1030 | OSDMap session; | 1030 | OSDMap session; |
1031 | return SimianGetGenericEntry(agentID, "GroupSessionDropped", groupID.ToString(), out session); | 1031 | return SimianGetGenericEntry(agentID, "GroupSessionDropped", groupID.ToString(), out session); |
1032 | } | 1032 | } |
1033 | 1033 | ||
1034 | public void AgentDroppedFromGroupChatSession(UUID agentID, UUID groupID) | 1034 | public void AgentDroppedFromGroupChatSession(UUID agentID, UUID groupID) |
1035 | { | 1035 | { |
1036 | SimianAddGeneric(agentID, "GroupSessionDropped", groupID.ToString(), new OSDMap()); | 1036 | SimianAddGeneric(agentID, "GroupSessionDropped", groupID.ToString(), new OSDMap()); |
1037 | } | 1037 | } |
1038 | 1038 | ||
1039 | public void AgentInvitedToGroupChatSession(UUID agentID, UUID groupID) | 1039 | public void AgentInvitedToGroupChatSession(UUID agentID, UUID groupID) |
1040 | { | 1040 | { |
1041 | SimianAddGeneric(agentID, "GroupSessionInvited", groupID.ToString(), new OSDMap()); | 1041 | SimianAddGeneric(agentID, "GroupSessionInvited", groupID.ToString(), new OSDMap()); |
1042 | } | 1042 | } |
1043 | 1043 | ||
1044 | public bool hasAgentBeenInvitedToGroupChatSession(UUID agentID, UUID groupID) | 1044 | public bool hasAgentBeenInvitedToGroupChatSession(UUID agentID, UUID groupID) |
1045 | { | 1045 | { |
1046 | OSDMap session; | 1046 | OSDMap session; |
1047 | return SimianGetGenericEntry(agentID, "GroupSessionDropped", groupID.ToString(), out session); | 1047 | return SimianGetGenericEntry(agentID, "GroupSessionDropped", groupID.ToString(), out session); |
1048 | } | 1048 | } |
1049 | 1049 | ||
1050 | #endregion | 1050 | #endregion |
1051 | 1051 | ||
1052 | private void EnsureRoleNotSelectedByMember(UUID groupID, UUID roleID, UUID userID) | 1052 | private void EnsureRoleNotSelectedByMember(UUID groupID, UUID roleID, UUID userID) |
@@ -1321,8 +1321,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1321 | return false; | 1321 | return false; |
1322 | } | 1322 | } |
1323 | } | 1323 | } |
1324 | #endregion | 1324 | #endregion |
1325 | 1325 | ||
1326 | } | 1326 | } |
1327 | 1327 | ||
1328 | } | 1328 | } |