Core/PacketIO: Fix packet structure for CMSG_CHAT_MESSAGE_CHANNEL (#31433)

This commit is contained in:
Luzifix
2025-11-02 15:45:13 +01:00
committed by GitHub
parent 0275ba9177
commit 9d1bdda6d8
2 changed files with 3 additions and 3 deletions

View File

@@ -65,8 +65,8 @@ void ChatMessageChannel::Read()
if (IsSecure)
_worldPacket >> Bits<1>(*IsSecure);
_worldPacket >> SizedCString::Data(Target);
_worldPacket >> SizedCString::Data(Text);
_worldPacket >> SizedString::Data(Target);
_worldPacket >> SizedString::Data(Text);
}
ByteBuffer& operator>>(ByteBuffer& data, ChatAddonMessageParams& params)

View File

@@ -480,7 +480,7 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
catch (ByteBufferException const&)
{
TC_LOG_ERROR("network", "WorldSession::Update ByteBufferException occured while parsing a packet (opcode: {}) from client {}, accountid={}. Skipped packet.",
packet->GetOpcode(), GetRemoteAddress(), GetAccountId());
GetOpcodeNameForLogging(static_cast<OpcodeClient>(packet->GetOpcode())), GetRemoteAddress(), GetAccountId());
packet->hexlike();
}