aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index 4aceac0..7f62d4d 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -578,6 +578,8 @@ namespace OpenSim.Region.ClientStack
578 578
579 public event PacketStats OnPacketStats; 579 public event PacketStats OnPacketStats;
580 580
581 public event MoneyTransferRequest OnMoneyTransferRequest;
582
581 583
582 #region Scene/Avatar to Client 584 #region Scene/Avatar to Client
583 585
@@ -2044,6 +2046,21 @@ namespace OpenSim.Region.ClientStack
2044 AddLocalPacketHandler(PacketType.ViewerEffect, HandleViewerEffect); 2046 AddLocalPacketHandler(PacketType.ViewerEffect, HandleViewerEffect);
2045 AddLocalPacketHandler(PacketType.AgentCachedTexture, AgentTextureCached); 2047 AddLocalPacketHandler(PacketType.AgentCachedTexture, AgentTextureCached);
2046 AddLocalPacketHandler(PacketType.MultipleObjectUpdate, MultipleObjUpdate); 2048 AddLocalPacketHandler(PacketType.MultipleObjectUpdate, MultipleObjUpdate);
2049 AddLocalPacketHandler(PacketType.MoneyTransferRequest, HandleMoneyTransferRequest);
2050 }
2051
2052 private bool HandleMoneyTransferRequest(IClientAPI sender, Packet Pack)
2053 {
2054 MoneyTransferRequestPacket money = (MoneyTransferRequestPacket)Pack;
2055
2056 if (OnMoneyTransferRequest != null)
2057 {
2058 OnMoneyTransferRequest(money.MoneyData.SourceID, money.MoneyData.DestID,
2059 money.MoneyData.Amount, money.MoneyData.TransactionType,
2060 Util.FieldToString(money.MoneyData.Description));
2061 }
2062
2063 return true;
2047 } 2064 }
2048 2065
2049 private bool HandleViewerEffect(IClientAPI sender, Packet Pack) 2066 private bool HandleViewerEffect(IClientAPI sender, Packet Pack)