diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 14 |
1 files changed, 14 insertions, 0 deletions
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 | |||
9998 | groupProfileReply.GroupData.MaturePublish = d.MaturePublish; | 9998 | groupProfileReply.GroupData.MaturePublish = d.MaturePublish; |
9999 | groupProfileReply.GroupData.OwnerRole = d.OwnerRole; | 9999 | groupProfileReply.GroupData.OwnerRole = d.OwnerRole; |
10000 | 10000 | ||
10001 | Scene scene = (Scene)m_scene; | ||
10002 | if (scene.Permissions.IsGod(sender.AgentId) && (!sender.IsGroupMember(groupProfileRequest.GroupData.GroupID))) | ||
10003 | { | ||
10004 | ScenePresence p; | ||
10005 | if (scene.TryGetScenePresence(sender.AgentId, out p)) | ||
10006 | { | ||
10007 | if (p.GodLevel >= 200) | ||
10008 | { | ||
10009 | groupProfileReply.GroupData.OpenEnrollment = true; | ||
10010 | groupProfileReply.GroupData.MembershipFee = 0; | ||
10011 | } | ||
10012 | } | ||
10013 | } | ||
10014 | |||
10001 | OutPacket(groupProfileReply, ThrottleOutPacketType.Task); | 10015 | OutPacket(groupProfileReply, ThrottleOutPacketType.Task); |
10002 | } | 10016 | } |
10003 | return true; | 10017 | return true; |