aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/EstateManager.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-01-04 02:24:05 +0000
committerTeravus Ovares2008-01-04 02:24:05 +0000
commit960b7e93b1fd48f240a11343716dc0be7e7b782d (patch)
treebfea99b29cc98b8420cf3847f23ae692a29c4a05 /OpenSim/Region/Environment/EstateManager.cs
parent* Fixing a the time clock issue on Sim Restart messages. See Mantis 287 (diff)
downloadopensim-SC_OLD-960b7e93b1fd48f240a11343716dc0be7e7b782d.zip
opensim-SC_OLD-960b7e93b1fd48f240a11343716dc0be7e7b782d.tar.gz
opensim-SC_OLD-960b7e93b1fd48f240a11343716dc0be7e7b782d.tar.bz2
opensim-SC_OLD-960b7e93b1fd48f240a11343716dc0be7e7b782d.tar.xz
* Added the ability for estate managers to use the magic secondlife blue card of death to send out region and estate messages.
* Switched over Region Restart notices to the magic secondlife blue card of death method.
Diffstat (limited to 'OpenSim/Region/Environment/EstateManager.cs')
-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