aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/EstateManager.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/EstateManager.cs32
1 files changed, 31 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/EstateManager.cs b/OpenSim/Region/Environment/EstateManager.cs
index 1367cb3..64b9d78 100644
--- a/OpenSim/Region/Environment/EstateManager.cs
+++ b/OpenSim/Region/Environment/EstateManager.cs
@@ -198,18 +198,48 @@ namespace OpenSim.Region.Environment
198 EstateChangeCovenant(packet); 198 EstateChangeCovenant(packet);
199 } 199 }
200 break; 200 break;
201 case "estateaccessdelta": 201 case "estateaccessdelta": // Estate access delta manages the banlist and allow list too.
202 if (m_scene.PermissionsMngr.GenericEstatePermission(remote_client.AgentId)) 202 if (m_scene.PermissionsMngr.GenericEstatePermission(remote_client.AgentId))
203 { 203 {
204 estateAccessDelta(remote_client, packet); 204 estateAccessDelta(remote_client, packet);
205 } 205 }
206 break; 206 break;
207 case "simulatormessage":
208 if (m_scene.PermissionsMngr.GenericEstatePermission(remote_client.AgentId))
209 {
210 SendSimulatorBlueBoxMessage(remote_client, packet);
211 }
212 break;
213 case "instantmessage":
214 if (m_scene.PermissionsMngr.GenericEstatePermission(remote_client.AgentId))
215 {
216 SendEstateBlueBoxMessage(remote_client, packet);
217 }
218 break;
207 default: 219 default:
208 MainLog.Instance.Error("EstateOwnerMessage: Unknown method requested\n" + packet.ToString()); 220 MainLog.Instance.Error("EstateOwnerMessage: Unknown method requested\n" + packet.ToString());
209 break; 221 break;
210 } 222 }
211 } 223 }
212 224
225 private void SendSimulatorBlueBoxMessage(IClientAPI remote_client, EstateOwnerMessagePacket packet)
226 {
227 LLUUID invoice = packet.MethodData.Invoice;
228 LLUUID SenderID = new LLUUID(Helpers.FieldToUTF8String(packet.ParamList[2].Parameter));
229 string SenderName = Helpers.FieldToUTF8String(packet.ParamList[3].Parameter);
230 string Message = Helpers.FieldToUTF8String(packet.ParamList[4].Parameter);
231 m_scene.SendRegionMessageFromEstateTools(SenderID, packet.AgentData.SessionID, SenderName, Message);
232
233 }
234 private void SendEstateBlueBoxMessage(IClientAPI remote_client, EstateOwnerMessagePacket packet)
235 {
236 LLUUID invoice = packet.MethodData.Invoice;
237 LLUUID SenderID = packet.AgentData.AgentID;
238 string SenderName = Helpers.FieldToUTF8String(packet.ParamList[0].Parameter);
239 string Message = Helpers.FieldToUTF8String(packet.ParamList[1].Parameter);
240 m_scene.SendEstateMessageFromEstateTools(SenderID, packet.AgentData.SessionID, SenderName, Message);
241
242 }
213 private void sendDetailedEstateData(IClientAPI remote_client, EstateOwnerMessagePacket packet) 243 private void sendDetailedEstateData(IClientAPI remote_client, EstateOwnerMessagePacket packet)
214 { 244 {
215 245