mantis 8436: fix lludp message

0.9.1.0-post-fixes
UbitUmarov 2018-12-30 19:00:43 +00:00
parent 488e2bcde2
commit 24c4cf74c6
1 changed files with 6 additions and 0 deletions

View File

@ -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];