Skip to content
Permalink
Browse files

Include packet header in Event_PacketSent's data field

This makes it consistent with the related event, Event_PacketReceived.
Fixes #46
  • Loading branch information...
Davnit committed Mar 14, 2017
1 parent d8806d1 commit 6671aa84863771b582423b4f3f675366b2079caa
Showing with 3 additions and 3 deletions.
  1. +3 −3 trunk/clsDataBuffer.cls
@@ -377,7 +377,7 @@ Public Function SendPacketMCP(Optional PacketID As Byte)
CopyMemory buf(3), m_buf(0), m_bufsize
End If

If (Not RunInAll("Event_PacketSent", "MCP", PacketID, m_bufsize + 3, Me.Data)) Then
If (Not RunInAll("Event_PacketSent", "MCP", PacketID, m_bufsize + 3, modUTF8.ByteArrToString(buf))) Then
If (MDebug("all")) Then
frmChat.AddChat COLOR_BLUE, "MCP SEND 0x" & ZeroOffset(PacketID, 2)
End If
@@ -432,7 +432,7 @@ Public Function SendPacket(Optional PacketID As Byte)
CopyMemory buf(4), m_buf(0), m_bufsize
End If

If (Not RunInAll("Event_PacketSent", "BNCS", PacketID, m_bufsize + 4, Me.Data)) Then
If (Not RunInAll("Event_PacketSent", "BNCS", PacketID, m_bufsize + 4, modUTF8.ByteArrToString(buf))) Then

If (MDebug("all")) Then
frmChat.AddChat COLOR_BLUE, "BNET SEND 0x" & ZeroOffset(PacketID, 2)
@@ -472,7 +472,7 @@ Public Function vLSendPacket(Optional PacketID As Byte)
CopyMemory buf(3), m_buf(0), m_bufsize
End If

If (Not RunInAll("Event_PacketSent", "BNLS", PacketID, m_bufsize + 3, Me.Data)) Then
If (Not RunInAll("Event_PacketSent", "BNLS", PacketID, m_bufsize + 3, modUTF8.ByteArrToString(buf))) Then
If (MDebug("all")) Then
frmChat.AddChat COLOR_BLUE, "BNLS SEND 0x" & ZeroOffset(PacketID, 2)
End If

0 comments on commit 6671aa8

Please sign in to comment.
You can’t perform that action at this time.