aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Addons
diff options
context:
space:
mode:
authoronefang2020-09-11 00:41:12 +1000
committeronefang2020-09-11 00:41:12 +1000
commitb95b03b409578da87f1dbaf809001e88e4e4fd56 (patch)
tree1db95cf20313408ef581377ae8e508d6d01cea00 /OpenSim/Addons
parentAdd DefaultRegionAccess in [AuthorizationService] section. (diff)
downloadopensim-SC-b95b03b409578da87f1dbaf809001e88e4e4fd56.zip
opensim-SC-b95b03b409578da87f1dbaf809001e88e4e4fd56.tar.gz
opensim-SC-b95b03b409578da87f1dbaf809001e88e4e4fd56.tar.bz2
opensim-SC-b95b03b409578da87f1dbaf809001e88e4e4fd56.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. Another attempt at sorting out the auto group chicken and egg problems. Are you a local? Asking for a friend. Hypergridders have their full name in firstname, and their grid in lastname. Sometimes. Code filled with gotos may be spaghetti code, but object oriented code can be like chopped spaghetti that's hidden all over the kitchen. At least with gotos you can follow them.
Diffstat (limited to 'OpenSim/Addons')
-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 98264ad..327504d 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);