Pushing the Avination Calling card hooks. Module to follow.
parent
964cae4f37
commit
532e3dad26
|
@ -320,7 +320,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||||
//m_log.DebugFormat("[XXX]: OnClientLogin!");
|
//m_log.DebugFormat("[XXX]: OnClientLogin!");
|
||||||
// Inform the friends that this user is online
|
// Inform the friends that this user is online
|
||||||
StatusChange(agentID, true);
|
StatusChange(agentID, true);
|
||||||
|
|
||||||
// Register that we need to send the list of online friends to this user
|
// Register that we need to send the list of online friends to this user
|
||||||
lock (m_NeedsListOfOnlineFriends)
|
lock (m_NeedsListOfOnlineFriends)
|
||||||
m_NeedsListOfOnlineFriends.Add(agentID);
|
m_NeedsListOfOnlineFriends.Add(agentID);
|
||||||
|
@ -609,6 +609,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||||
{
|
{
|
||||||
StoreFriendships(client.AgentId, friendID);
|
StoreFriendships(client.AgentId, friendID);
|
||||||
|
|
||||||
|
ICallingCardModule ccm = client.Scene.RequestModuleInterface<ICallingCardModule>();
|
||||||
|
if (ccm != null)
|
||||||
|
{
|
||||||
|
ccm.CreateCallingCard(client.AgentId, friendID, UUID.Zero);
|
||||||
|
}
|
||||||
|
|
||||||
// Update the local cache.
|
// Update the local cache.
|
||||||
CacheFriends(client);
|
CacheFriends(client);
|
||||||
|
|
||||||
|
@ -785,6 +791,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||||
(byte)OpenMetaverse.InstantMessageDialog.FriendshipAccepted, userID.ToString(), false, Vector3.Zero);
|
(byte)OpenMetaverse.InstantMessageDialog.FriendshipAccepted, userID.ToString(), false, Vector3.Zero);
|
||||||
friendClient.SendInstantMessage(im);
|
friendClient.SendInstantMessage(im);
|
||||||
|
|
||||||
|
ICallingCardModule ccm = friendClient.Scene.RequestModuleInterface<ICallingCardModule>();
|
||||||
|
if (ccm != null)
|
||||||
|
{
|
||||||
|
ccm.CreateCallingCard(friendID, userID, UUID.Zero);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Update the local cache
|
// Update the local cache
|
||||||
CacheFriends(friendClient);
|
CacheFriends(friendClient);
|
||||||
|
|
||||||
|
@ -807,7 +820,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||||
// we're done
|
// we're done
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -859,7 +872,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||||
|
|
||||||
public bool LocalStatusNotification(UUID userID, UUID friendID, bool online)
|
public bool LocalStatusNotification(UUID userID, UUID friendID, bool online)
|
||||||
{
|
{
|
||||||
// m_log.DebugFormat("[FRIENDS]: Local Status Notify {0} that user {1} is {2}", friendID, userID, online);
|
//m_log.DebugFormat("[FRIENDS]: Local Status Notify {0} that user {1} is {2}", friendID, userID, online);
|
||||||
IClientAPI friendClient = LocateClientObject(friendID);
|
IClientAPI friendClient = LocateClientObject(friendID);
|
||||||
if (friendClient != null)
|
if (friendClient != null)
|
||||||
{
|
{
|
||||||
|
@ -1013,4 +1026,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue