aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Addons/Groups/GroupsModule.cs
diff options
context:
space:
mode:
authoronefang2019-07-31 20:22:55 +1000
committeronefang2019-07-31 20:22:55 +1000
commit19d90af82d26e424171761f411cca7cede8738a9 (patch)
tree529dd095578af1a4738b73177e0dbf64ddce1617 /OpenSim/Addons/Groups/GroupsModule.cs
parentOpenSim found a new way for archiving to be spammy. (diff)
downloadopensim-SC_OLD-19d90af82d26e424171761f411cca7cede8738a9.zip
opensim-SC_OLD-19d90af82d26e424171761f411cca7cede8738a9.tar.gz
opensim-SC_OLD-19d90af82d26e424171761f411cca7cede8738a9.tar.bz2
opensim-SC_OLD-19d90af82d26e424171761f411cca7cede8738a9.tar.xz
Automatically add members to certain groups, and HGers from specific grids to certain other groups.
It doesn't let them know, though the last group added will be their active group. This replaces a PHP script I used to use, that got broken by a PHP update. It also didn't let people know, no one complained. This is better.
Diffstat (limited to 'OpenSim/Addons/Groups/GroupsModule.cs')
-rw-r--r--OpenSim/Addons/Groups/GroupsModule.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Addons/Groups/GroupsModule.cs b/OpenSim/Addons/Groups/GroupsModule.cs
index 5b76e0a..a4030aa 100644
--- a/OpenSim/Addons/Groups/GroupsModule.cs
+++ b/OpenSim/Addons/Groups/GroupsModule.cs
@@ -1015,6 +1015,15 @@ namespace OpenSim.Groups
1015 remoteClient.SendJoinGroupReply(groupID, false); 1015 remoteClient.SendJoinGroupReply(groupID, false);
1016 } 1016 }
1017 1017
1018 public void JoinGroup(string agentID, UUID groupID)
1019 {
1020 string reason = string.Empty;
1021 m_groupData.AddAgentToGroup(agentID, agentID, groupID, UUID.Zero, string.Empty, out reason);
1022 if (reason != string.Empty)
1023 // A warning
1024 m_log.Warn("[Groups]: Join group warning - " + reason);
1025 }
1026
1018 public void LeaveGroupRequest(IClientAPI remoteClient, UUID groupID) 1027 public void LeaveGroupRequest(IClientAPI remoteClient, UUID groupID)
1019 { 1028 {
1020 if (m_debugEnabled) m_log.DebugFormat("[Groups]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); 1029 if (m_debugEnabled) m_log.DebugFormat("[Groups]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);