aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2010-09-25 06:56:08 +0100
committerMelanie2010-09-25 06:56:08 +0100
commitd8ae287ebf0867b14f44cd3e112fc254af2bdb65 (patch)
treef5d469989918a2bbba05aac1fd9df1abded9319b
parentFix a minor economy issue (diff)
downloadopensim-SC_OLD-d8ae287ebf0867b14f44cd3e112fc254af2bdb65.zip
opensim-SC_OLD-d8ae287ebf0867b14f44cd3e112fc254af2bdb65.tar.gz
opensim-SC_OLD-d8ae287ebf0867b14f44cd3e112fc254af2bdb65.tar.bz2
opensim-SC_OLD-d8ae287ebf0867b14f44cd3e112fc254af2bdb65.tar.xz
Prevent spoofing the agent name on text IM
-rw-r--r--OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs
index 420e3ca..bafb802 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
158 158
159 if (m_TransferModule != null) 159 if (m_TransferModule != null)
160 { 160 {
161 im.fromAgentName = client.FirstName + " " + client.LastName;
161 m_TransferModule.SendInstantMessage(im, 162 m_TransferModule.SendInstantMessage(im,
162 delegate(bool success) 163 delegate(bool success)
163 { 164 {
@@ -198,4 +199,4 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
198 OnInstantMessage(null, msg); 199 OnInstantMessage(null, msg);
199 } 200 }
200 } 201 }
201} \ No newline at end of file 202}