From 5e2e05a1c1cf083c52728798c809711f4e2f52ae Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 16 Nov 2008 22:04:01 +0000 Subject: Megapatch. Completely remove the multiparameter IM methods. Remove the insecure fromAgentSession field. --- OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/World') diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs index de0a41a..735a521 100644 --- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs @@ -84,9 +84,10 @@ namespace OpenSim.Region.Environment.Modules.World.NPC public void InstantMessage(UUID target, string message) { - OnInstantMessage(this, m_uuid, SessionId, target, UUID.Combine(m_uuid, target), - (uint) Util.UnixTimeSinceEpoch(), Name, message, 0, false, 0, 0, - Position, m_scene.RegionInfo.RegionID, new byte[0]); + OnInstantMessage(this, new GridInstantMessage(m_scene, + m_uuid, m_firstname + " " + m_lastname, + target, 0, false, message, + UUID.Zero, false, Position, new byte[0])); } public void SendAgentOffline(UUID[] agentIDs) -- cgit v1.1