From bbbcb453989625587b4c5ff00b50480d5a524e2e Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 23 Mar 2011 00:05:27 +0100 Subject: Fudge the group join permissions for god user in god mode. Allows to join every group without an invite. --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 3972ec9..e91d37f 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -9998,6 +9998,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP groupProfileReply.GroupData.MaturePublish = d.MaturePublish; groupProfileReply.GroupData.OwnerRole = d.OwnerRole; + Scene scene = (Scene)m_scene; + if (scene.Permissions.IsGod(sender.AgentId) && (!sender.IsGroupMember(groupProfileRequest.GroupData.GroupID))) + { + ScenePresence p; + if (scene.TryGetScenePresence(sender.AgentId, out p)) + { + if (p.GodLevel >= 200) + { + groupProfileReply.GroupData.OpenEnrollment = true; + groupProfileReply.GroupData.MembershipFee = 0; + } + } + } + OutPacket(groupProfileReply, ThrottleOutPacketType.Task); } return true; -- cgit v1.1