mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/PacketIO: Restored WorldSession::LogUnprocessedTail functionality for packets processed using specialized classes for each opcode
This commit is contained in:
@@ -31,6 +31,7 @@ public:
|
||||
PacketClass nicePacket(std::move(packet));
|
||||
nicePacket.Read();
|
||||
(session->*HandlerFunction)(nicePacket);
|
||||
session->LogUnprocessedTail(nicePacket.GetRawPacket());
|
||||
}
|
||||
};
|
||||
|
||||
@@ -43,6 +44,7 @@ public:
|
||||
void Call(WorldSession* session, WorldPacket& packet) const override
|
||||
{
|
||||
(session->*HandlerFunction)(packet);
|
||||
session->LogUnprocessedTail(&packet);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -370,7 +370,6 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
|
||||
{
|
||||
sScriptMgr->OnPacketReceive(this, *packet);
|
||||
opHandle->Call(this, *packet);
|
||||
LogUnprocessedTail(packet);
|
||||
}
|
||||
// lag can cause STATUS_LOGGEDIN opcodes to arrive after the player started a transfer
|
||||
break;
|
||||
@@ -383,7 +382,6 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
|
||||
// not expected _player or must checked in packet hanlder
|
||||
sScriptMgr->OnPacketReceive(this, *packet);
|
||||
opHandle->Call(this, *packet);
|
||||
LogUnprocessedTail(packet);
|
||||
}
|
||||
break;
|
||||
case STATUS_TRANSFER:
|
||||
@@ -395,7 +393,6 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
|
||||
{
|
||||
sScriptMgr->OnPacketReceive(this, *packet);
|
||||
opHandle->Call(this, *packet);
|
||||
LogUnprocessedTail(packet);
|
||||
}
|
||||
break;
|
||||
case STATUS_AUTHED:
|
||||
@@ -415,7 +412,6 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
|
||||
{
|
||||
sScriptMgr->OnPacketReceive(this, *packet);
|
||||
opHandle->Call(this, *packet);
|
||||
LogUnprocessedTail(packet);
|
||||
}
|
||||
break;
|
||||
case STATUS_NEVER:
|
||||
|
||||
@@ -1113,6 +1113,7 @@ class TC_GAME_API WorldSession
|
||||
|
||||
void Handle_NULL(WorldPackets::Null& null); // not used
|
||||
void Handle_EarlyProccess(WorldPacket& recvPacket); // just mark packets processed in WorldSocket::OnRead
|
||||
void LogUnprocessedTail(WorldPacket* packet);
|
||||
|
||||
void HandleCharEnum(PreparedQueryResult result);
|
||||
void HandleCharEnumOpcode(WorldPackets::Character::EnumCharacters& /*enumCharacters*/);
|
||||
@@ -1807,7 +1808,6 @@ class TC_GAME_API WorldSession
|
||||
|
||||
// logging helper
|
||||
void LogUnexpectedOpcode(WorldPacket* packet, const char* status, const char *reason);
|
||||
void LogUnprocessedTail(WorldPacket* packet);
|
||||
|
||||
// EnumData helpers
|
||||
bool IsLegitCharacterForAccount(ObjectGuid lowGUID)
|
||||
|
||||
Reference in New Issue
Block a user