aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs56
1 files changed, 17 insertions, 39 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index e69f373..84a32ff 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -7194,25 +7194,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
7194 7194
7195 if (m_GroupsModule != null) 7195 if (m_GroupsModule != null)
7196 { 7196 {
7197 CreateGroupReplyPacket createGroupReply = (CreateGroupReplyPacket)PacketPool.Instance.GetPacket(PacketType.CreateGroupReply);
7198
7199 createGroupReply.AgentData =
7200 new CreateGroupReplyPacket.AgentDataBlock();
7201 createGroupReply.ReplyData =
7202 new CreateGroupReplyPacket.ReplyDataBlock();
7203
7204 createGroupReply.AgentData.AgentID = AgentId;
7205 createGroupReply.ReplyData.GroupID = UUID.Zero;
7206
7207 IMoneyModule money = m_scene.RequestModuleInterface<IMoneyModule>();
7208 if (money != null && !money.GroupCreationCovered(this))
7209 {
7210 createGroupReply.ReplyData.Success = false;
7211 createGroupReply.ReplyData.Message = Utils.StringToBytes("You do not have sufficient funds to create a group");
7212 OutPacket(createGroupReply, ThrottleOutPacketType.Task);
7213 break;
7214 }
7215
7216 UUID groupID = m_GroupsModule.CreateGroup(this, 7197 UUID groupID = m_GroupsModule.CreateGroup(this,
7217 Utils.BytesToString(createGroupRequest.GroupData.Name), 7198 Utils.BytesToString(createGroupRequest.GroupData.Name),
7218 Utils.BytesToString(createGroupRequest.GroupData.Charter), 7199 Utils.BytesToString(createGroupRequest.GroupData.Charter),
@@ -7222,26 +7203,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
7222 createGroupRequest.GroupData.OpenEnrollment, 7203 createGroupRequest.GroupData.OpenEnrollment,
7223 createGroupRequest.GroupData.AllowPublish, 7204 createGroupRequest.GroupData.AllowPublish,
7224 createGroupRequest.GroupData.MaturePublish); 7205 createGroupRequest.GroupData.MaturePublish);
7225 if (groupID == UUID.Zero)
7226 {
7227 createGroupReply.ReplyData.Success = false;
7228 createGroupReply.ReplyData.Message = Utils.StringToBytes("We're sorry, but we could not create the requested group. Please try another name");
7229 OutPacket(createGroupReply, ThrottleOutPacketType.Task);
7230 break;
7231 }
7232
7233 if (money != null)
7234 money.ApplyGroupCreationCharge(AgentId);
7235
7236 createGroupReply.ReplyData.Success = true;
7237 createGroupReply.ReplyData.GroupID = groupID;
7238 createGroupReply.ReplyData.Message = Utils.StringToBytes("Group created");
7239 OutPacket(createGroupReply, ThrottleOutPacketType.Task);
7240
7241 // Sync with event queue
7242 Thread.Sleep(1000);
7243
7244 m_GroupsModule.SendAgentGroupDataUpdate(this);
7245 } 7206 }
7246 break; 7207 break;
7247 7208
@@ -8638,6 +8599,23 @@ namespace OpenSim.Region.ClientStack.LindenUDP
8638 } 8599 }
8639 } 8600 }
8640 8601
8602 public void SendCreateGroupReply(UUID groupID, bool success, string message)
8603 {
8604 CreateGroupReplyPacket createGroupReply = (CreateGroupReplyPacket)PacketPool.Instance.GetPacket(PacketType.CreateGroupReply);
8605
8606 createGroupReply.AgentData =
8607 new CreateGroupReplyPacket.AgentDataBlock();
8608 createGroupReply.ReplyData =
8609 new CreateGroupReplyPacket.ReplyDataBlock();
8610
8611 createGroupReply.AgentData.AgentID = AgentId;
8612 createGroupReply.ReplyData.GroupID = groupID;
8613
8614 createGroupReply.ReplyData.Success = success;
8615 createGroupReply.ReplyData.Message = Utils.StringToBytes(message);
8616 OutPacket(createGroupReply, ThrottleOutPacketType.Task);
8617 }
8618
8641 public string Report() 8619 public string Report()
8642 { 8620 {
8643 LLPacketHandler handler = (LLPacketHandler) m_PacketHandler; 8621 LLPacketHandler handler = (LLPacketHandler) m_PacketHandler;