Split IM handling so an inheriting module can cange names if required.
parent
34b308d5b6
commit
9de8cefee5
|
@ -154,6 +154,12 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
public virtual void OnViewerInstantMessage(IClientAPI client, GridInstantMessage im)
|
||||||
|
{
|
||||||
|
im.fromAgentName = client.FirstName + " " + client.LastName;
|
||||||
|
OnInstantMessage(client, im);
|
||||||
|
}
|
||||||
|
|
||||||
public virtual void OnInstantMessage(IClientAPI client, GridInstantMessage im)
|
public virtual void OnInstantMessage(IClientAPI client, GridInstantMessage im)
|
||||||
{
|
{
|
||||||
byte dialog = im.dialog;
|
byte dialog = im.dialog;
|
||||||
|
@ -198,8 +204,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||||
|
|
||||||
if (m_TransferModule != null)
|
if (m_TransferModule != null)
|
||||||
{
|
{
|
||||||
if (client != null)
|
|
||||||
im.fromAgentName = client.FirstName + " " + client.LastName;
|
|
||||||
m_TransferModule.SendInstantMessage(im,
|
m_TransferModule.SendInstantMessage(im,
|
||||||
delegate(bool success)
|
delegate(bool success)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue