mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
mantis 8436: fix lludp message
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user