From d8ae287ebf0867b14f44cd3e112fc254af2bdb65 Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 25 Sep 2010 06:56:08 +0100 Subject: [PATCH] Prevent spoofing the agent name on text IM --- .../CoreModules/Avatar/InstantMessage/InstantMessageModule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs index 420e3ca402..bafb802cf9 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs @@ -158,6 +158,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage if (m_TransferModule != null) { + im.fromAgentName = client.FirstName + " " + client.LastName; m_TransferModule.SendInstantMessage(im, delegate(bool success) { @@ -198,4 +199,4 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage OnInstantMessage(null, msg); } } -} \ No newline at end of file +}