diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index 9ceb4cd..e73b2e2 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -95,6 +95,22 @@ namespace OpenSim.Region.ClientStack | |||
95 | break; | 95 | break; |
96 | 96 | ||
97 | #region Scene/Avatar | 97 | #region Scene/Avatar |
98 | case PacketType.AvatarPropertiesRequest: | ||
99 | AvatarPropertiesRequestPacket avatarProperties = (AvatarPropertiesRequestPacket)Pack; | ||
100 | AvatarPropertiesReplyPacket avatarReply = new AvatarPropertiesReplyPacket(); | ||
101 | avatarReply.AgentData.AgentID = this.AgentID; | ||
102 | avatarReply.AgentData.AvatarID = avatarProperties.AgentData.AvatarID; | ||
103 | avatarReply.PropertiesData.AboutText = Helpers.StringToField( "OpenSim crash test dummy"); | ||
104 | avatarReply.PropertiesData.BornOn = Helpers.StringToField("Before now"); | ||
105 | avatarReply.PropertiesData.CharterMember = new byte[0]; | ||
106 | avatarReply.PropertiesData.FLAboutText = Helpers.StringToField("First life? What is one of those? OpenSim is my life!"); | ||
107 | avatarReply.PropertiesData.Flags = 0; | ||
108 | avatarReply.PropertiesData.FLImageID = LLUUID.Zero; | ||
109 | avatarReply.PropertiesData.ImageID = LLUUID.Zero; | ||
110 | avatarReply.PropertiesData.ProfileURL = new byte[0]; | ||
111 | avatarReply.PropertiesData.PartnerID = new LLUUID("11111111-1111-0000-0000-000100bba000"); | ||
112 | OutPacket(avatarReply); | ||
113 | break; | ||
98 | case PacketType.ChatFromViewer: | 114 | case PacketType.ChatFromViewer: |
99 | ChatFromViewerPacket inchatpack = (ChatFromViewerPacket)Pack; | 115 | ChatFromViewerPacket inchatpack = (ChatFromViewerPacket)Pack; |
100 | if (Util.FieldToString(inchatpack.ChatData.Message) == "") | 116 | if (Util.FieldToString(inchatpack.ChatData.Message) == "") |
@@ -128,7 +144,7 @@ namespace OpenSim.Region.ClientStack | |||
128 | RezObjectPacket rezPacket = (RezObjectPacket)Pack; | 144 | RezObjectPacket rezPacket = (RezObjectPacket)Pack; |
129 | if (OnRezObject != null) | 145 | if (OnRezObject != null) |
130 | { | 146 | { |
131 | this.OnRezObject(this, rezPacket.InventoryData.ItemID, rezPacket.RezData.RayEnd); | 147 | this.OnRezObject(this, rezPacket.InventoryData.ItemID, rezPacket.RezData.RayEnd); |
132 | } | 148 | } |
133 | break; | 149 | break; |
134 | case PacketType.DeRezObject: | 150 | case PacketType.DeRezObject: |
@@ -366,7 +382,11 @@ namespace OpenSim.Region.ClientStack | |||
366 | } | 382 | } |
367 | break; | 383 | break; |
368 | case PacketType.RequestXfer: | 384 | case PacketType.RequestXfer: |
369 | //Console.WriteLine(Pack.ToString()); | 385 | RequestXferPacket xferReq = (RequestXferPacket)Pack; |
386 | if (OnRequestXfer != null) | ||
387 | { | ||
388 | OnRequestXfer(this, xferReq.XferID.ID, Util.FieldToString(xferReq.XferID.Filename)); | ||
389 | } | ||
370 | break; | 390 | break; |
371 | case PacketType.SendXferPacket: | 391 | case PacketType.SendXferPacket: |
372 | SendXferPacketPacket xferRec = (SendXferPacketPacket)Pack; | 392 | SendXferPacketPacket xferRec = (SendXferPacketPacket)Pack; |