diff options
author | Melanie | 2010-09-25 06:56:08 +0100 |
---|---|---|
committer | Melanie | 2010-09-25 06:56:08 +0100 |
commit | d8ae287ebf0867b14f44cd3e112fc254af2bdb65 (patch) | |
tree | f5d469989918a2bbba05aac1fd9df1abded9319b /OpenSim | |
parent | Fix a minor economy issue (diff) | |
download | opensim-SC-d8ae287ebf0867b14f44cd3e112fc254af2bdb65.zip opensim-SC-d8ae287ebf0867b14f44cd3e112fc254af2bdb65.tar.gz opensim-SC-d8ae287ebf0867b14f44cd3e112fc254af2bdb65.tar.bz2 opensim-SC-d8ae287ebf0867b14f44cd3e112fc254af2bdb65.tar.xz |
Prevent spoofing the agent name on text IM
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs | 3 |
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 | } |