mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Make the "All Estates" option work from the client (this makes chosen changes to all the estates that the user owns).
This applies to adding/removing estate users, groups, managers and bans. This is the application of the AllEstates_0.5.patch from http://opensimulator.org/mantis/view.php?id=5420 Thanks very much, Snoopy!
This commit is contained in:
@@ -8809,13 +8809,29 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
case "instantmessage":
|
||||
if (((Scene)m_scene).Permissions.CanIssueEstateCommand(AgentId, false))
|
||||
{
|
||||
if (messagePacket.ParamList.Length < 5)
|
||||
if (messagePacket.ParamList.Length < 2)
|
||||
return true;
|
||||
|
||||
UUID invoice = messagePacket.MethodData.Invoice;
|
||||
UUID SenderID = new UUID(Utils.BytesToString(messagePacket.ParamList[2].Parameter));
|
||||
string SenderName = Utils.BytesToString(messagePacket.ParamList[3].Parameter);
|
||||
string Message = Utils.BytesToString(messagePacket.ParamList[4].Parameter);
|
||||
UUID sessionID = messagePacket.AgentData.SessionID;
|
||||
|
||||
UUID SenderID;
|
||||
string SenderName;
|
||||
string Message;
|
||||
|
||||
if (messagePacket.ParamList.Length < 5)
|
||||
{
|
||||
SenderID = AgentId;
|
||||
SenderName = Utils.BytesToString(messagePacket.ParamList[0].Parameter);
|
||||
Message = Utils.BytesToString(messagePacket.ParamList[1].Parameter);
|
||||
}
|
||||
else
|
||||
{
|
||||
SenderID = new UUID(Utils.BytesToString(messagePacket.ParamList[2].Parameter));
|
||||
SenderName = Utils.BytesToString(messagePacket.ParamList[3].Parameter);
|
||||
Message = Utils.BytesToString(messagePacket.ParamList[4].Parameter);
|
||||
}
|
||||
|
||||
OnEstateBlueBoxMessageRequest(this, invoice, SenderID, sessionID, SenderName, Message);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user