Pushing the Avination Calling card hooks. Module to follow.
parent
23d04fa25c
commit
5c2ffa260c
|
@ -608,8 +608,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||||
{
|
{
|
||||||
StoreFriendships(client.AgentId, friendID);
|
StoreFriendships(client.AgentId, friendID);
|
||||||
|
|
||||||
// Update the local cache
|
ICallingCardModule ccm = client.Scene.RequestModuleInterface<ICallingCardModule>();
|
||||||
RecacheFriends(client);
|
if (ccm != null)
|
||||||
|
{
|
||||||
|
ccm.CreateCallingCard(client.AgentId, friendID, UUID.Zero);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update the local cache.
|
||||||
|
CacheFriends(client);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Notify the friend
|
// Notify the friend
|
||||||
|
@ -784,6 +790,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
|
||||||
RecacheFriends(friendClient);
|
RecacheFriends(friendClient);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue