mirror of
https://github.com/opensim/opensim.git
synced 2026-06-24 23:35:47 +08:00
Prevent spoofing the agent name on text IM
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user