aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index 8bf807c..aa8ab1d 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -551,6 +551,10 @@ namespace OpenSim.Region.ClientStack
551 public event RegionInfoRequest OnRegionInfoRequest; 551 public event RegionInfoRequest OnRegionInfoRequest;
552 public event EstateCovenantRequest OnEstateCovenantRequest; 552 public event EstateCovenantRequest OnEstateCovenantRequest;
553 553
554 public event FriendActionDelegate OnApproveFriendRequest;
555 public event FriendActionDelegate OnDenyFriendRequest;
556 public event FriendshipTermination OnTerminateFriendship;
557
554 #region Scene/Avatar to Client 558 #region Scene/Avatar to Client
555 559
556 /// <summary> 560 /// <summary>
@@ -2555,6 +2559,39 @@ namespace OpenSim.Region.ClientStack
2555 msgpack.MessageBlock.BinaryBucket); 2559 msgpack.MessageBlock.BinaryBucket);
2556 } 2560 }
2557 break; 2561 break;
2562
2563 case PacketType.AcceptFriendship:
2564 AcceptFriendshipPacket afriendpack = (AcceptFriendshipPacket)Pack;
2565
2566 // My guess is this is the folder to stick the calling card into
2567 List<LLUUID> callingCardFolders = new List<LLUUID>();
2568
2569 LLUUID agentID = afriendpack.AgentData.AgentID;
2570 LLUUID transactionID = afriendpack.TransactionBlock.TransactionID;
2571
2572 for (int fi = 0; fi < afriendpack.FolderData.Length; fi++)
2573 {
2574 callingCardFolders.Add(afriendpack.FolderData[fi].FolderID);
2575 }
2576
2577 if (OnApproveFriendRequest != null)
2578 {
2579 OnApproveFriendRequest(this, agentID, transactionID, callingCardFolders);
2580 }
2581
2582
2583 break;
2584 case PacketType.TerminateFriendship:
2585 TerminateFriendshipPacket tfriendpack = (TerminateFriendshipPacket)Pack;
2586 LLUUID listOwnerAgentID = tfriendpack.AgentData.AgentID;
2587 LLUUID exFriendID = tfriendpack.ExBlock.OtherID;
2588
2589 if (OnTerminateFriendship != null)
2590 {
2591 OnTerminateFriendship(this, listOwnerAgentID, exFriendID);
2592 }
2593
2594 break;
2558 case PacketType.RezObject: 2595 case PacketType.RezObject:
2559 RezObjectPacket rezPacket = (RezObjectPacket) Pack; 2596 RezObjectPacket rezPacket = (RezObjectPacket) Pack;
2560 if (OnRezObject != null) 2597 if (OnRezObject != null)