mantis 8436: fix lludp message
parent
488e2bcde2
commit
24c4cf74c6
|
@ -2431,6 +2431,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
public void SendAlertMessage(string message)
|
||||
{
|
||||
AlertMessagePacket alertPack = (AlertMessagePacket)PacketPool.Instance.GetPacket(PacketType.AlertMessage);
|
||||
alertPack.AgentInfo = new AlertMessagePacket.AgentInfoBlock[1];
|
||||
alertPack.AgentInfo[0] = new AlertMessagePacket.AgentInfoBlock();
|
||||
alertPack.AgentInfo[0].AgentID = AgentId;
|
||||
alertPack.AlertData = new AlertMessagePacket.AlertDataBlock();
|
||||
alertPack.AlertData.Message = Util.StringToBytes256(message);
|
||||
alertPack.AlertInfo = new AlertMessagePacket.AlertInfoBlock[0];
|
||||
|
@ -2440,6 +2443,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
public void SendAlertMessage(string message, string info)
|
||||
{
|
||||
AlertMessagePacket alertPack = (AlertMessagePacket)PacketPool.Instance.GetPacket(PacketType.AlertMessage);
|
||||
alertPack.AgentInfo = new AlertMessagePacket.AgentInfoBlock[1];
|
||||
alertPack.AgentInfo[0] = new AlertMessagePacket.AgentInfoBlock();
|
||||
alertPack.AgentInfo[0].AgentID = AgentId;
|
||||
alertPack.AlertData = new AlertMessagePacket.AlertDataBlock();
|
||||
alertPack.AlertData.Message = Util.StringToBytes256(message);
|
||||
alertPack.AlertInfo = new AlertMessagePacket.AlertInfoBlock[1];
|
||||
|
|
Loading…
Reference in New Issue