aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Client/MXP/ClientStack/MXPClientView.cs3
-rw-r--r--OpenSim/Framework/IClientAPI.cs2
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs56
-rw-r--r--OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs4
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs4
-rw-r--r--OpenSim/Tests/Common/Mock/TestClient.cs4
6 files changed, 34 insertions, 39 deletions
diff --git a/OpenSim/Client/MXP/ClientStack/MXPClientView.cs b/OpenSim/Client/MXP/ClientStack/MXPClientView.cs
index 30820d3..3f04b55 100644
--- a/OpenSim/Client/MXP/ClientStack/MXPClientView.cs
+++ b/OpenSim/Client/MXP/ClientStack/MXPClientView.cs
@@ -1589,5 +1589,8 @@ namespace OpenSim.Client.MXP.ClientStack
1589 1589
1590 #endregion 1590 #endregion
1591 1591
1592 public void SendCreateGroupReply(UUID groupID, bool success, string message)
1593 {
1594 }
1592 } 1595 }
1593} 1596}
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs
index ad43316..4a0becd 100644
--- a/OpenSim/Framework/IClientAPI.cs
+++ b/OpenSim/Framework/IClientAPI.cs
@@ -1057,6 +1057,8 @@ namespace OpenSim.Framework
1057 1057
1058 void SendLeaveGroupReply(UUID groupID, bool success); 1058 void SendLeaveGroupReply(UUID groupID, bool success);
1059 1059
1060 void SendCreateGroupReply(UUID groupID, bool success, string message);
1061
1060 void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia); 1062 void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia);
1061 1063
1062 void SendScriptRunningReply(UUID objectID, UUID itemID, bool running); 1064 void SendScriptRunningReply(UUID objectID, UUID itemID, bool running);
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;
diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs
index 9828d68..803eeb4 100644
--- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs
+++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs
@@ -1053,6 +1053,10 @@ namespace OpenSim.Region.Examples.SimpleModule
1053 { 1053 {
1054 } 1054 }
1055 1055
1056 public void SendCreateGroupReply(UUID groupID, bool success, string message)
1057 {
1058 }
1059
1056 #endregion 1060 #endregion
1057 } 1061 }
1058} 1062}
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs
index da2d781..71f7cc0 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs
@@ -1053,6 +1053,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC
1053 { 1053 {
1054 } 1054 }
1055 1055
1056 public void SendCreateGroupReply(UUID groupID, bool success, string message)
1057 {
1058 }
1059
1056 #endregion 1060 #endregion
1057 } 1061 }
1058} 1062}
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index 0635aab..926d138 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -1094,5 +1094,9 @@ namespace OpenSim.Tests.Common.Mock
1094 public void SendUserInfoReply(bool imViaEmail, bool visible, string email) 1094 public void SendUserInfoReply(bool imViaEmail, bool visible, string email)
1095 { 1095 {
1096 } 1096 }
1097
1098 public void SendCreateGroupReply(UUID groupID, bool success, string message)
1099 {
1100 }
1097 } 1101 }
1098} 1102}