Add the client message handlers. The calling card handlers that are part of

the old friends module are omitted intentionally, as I believe those should
be in a calling card module, not bundled with friends.
slimupdates
Melanie 2010-02-26 21:37:07 +00:00
parent 2c6606cee4
commit dfc17a531f
1 changed files with 27 additions and 0 deletions

View File

@ -261,6 +261,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
private void OnNewClient(IClientAPI client) private void OnNewClient(IClientAPI client)
{ {
client.OnInstantMessage += OnInstantMessage;
client.OnApproveFriendRequest += OnApproveFriendRequest;
client.OnDenyFriendRequest += OnDenyFriendRequest;
client.OnTerminateFriendship += OnTerminateFriendship;
client.OnGrantUserRights += OnGrantUserRights;
client.OnLogout += OnLogout; client.OnLogout += OnLogout;
client.OnEconomyDataRequest += SendPresence; client.OnEconomyDataRequest += SendPresence;
@ -421,5 +428,25 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
} }
} }
} }
private void OnInstantMessage(IClientAPI client, GridInstantMessage im)
{
}
private void OnApproveFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders)
{
}
private void OnDenyFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders)
{
}
private void OnTerminateFriendship(IClientAPI client, UUID agentID, UUID exfriendID)
{
}
private void OnGrantUserRights(IClientAPI remoteClient, UUID requester, UUID target, int rights)
{
}
} }
} }