Pushing the Avination Calling card hooks. Module to follow.
parent
964cae4f37
commit
532e3dad26
|
@ -609,6 +609,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
|||
{
|
||||
StoreFriendships(client.AgentId, friendID);
|
||||
|
||||
ICallingCardModule ccm = client.Scene.RequestModuleInterface<ICallingCardModule>();
|
||||
if (ccm != null)
|
||||
{
|
||||
ccm.CreateCallingCard(client.AgentId, friendID, UUID.Zero);
|
||||
}
|
||||
|
||||
// Update the local cache.
|
||||
CacheFriends(client);
|
||||
|
||||
|
@ -785,6 +791,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
|||
(byte)OpenMetaverse.InstantMessageDialog.FriendshipAccepted, userID.ToString(), false, Vector3.Zero);
|
||||
friendClient.SendInstantMessage(im);
|
||||
|
||||
ICallingCardModule ccm = friendClient.Scene.RequestModuleInterface<ICallingCardModule>();
|
||||
if (ccm != null)
|
||||
{
|
||||
ccm.CreateCallingCard(friendID, userID, UUID.Zero);
|
||||
}
|
||||
|
||||
|
||||
// Update the local cache
|
||||
CacheFriends(friendClient);
|
||||
|
||||
|
|
Loading…
Reference in New Issue