mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/PacketIO: Fix packet structure for CMSG_CHAT_MESSAGE_CHANNEL (#31433)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user