mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 21:02:14 +01:00
Core/Packets: corrected error msg
This commit is contained in:
@@ -159,9 +159,9 @@ void WorldSession::SendPacket(WorldPacket const* packet)
|
||||
if (!m_Socket)
|
||||
return;
|
||||
|
||||
if (packet->GetOpcode() == NULL || packet->GetOpcode() == UNKNOWN_OPCODE)
|
||||
if (packet->GetOpcode() == NULL_OPCODE || packet->GetOpcode() == UNKNOWN_OPCODE)
|
||||
{
|
||||
sLog->outError("Sending unknown opcode - prevented. Trace:");
|
||||
sLog->outError("Prevented sending of %s. Trace:", packet->GetOpcode() == NULL_OPCODE ? "NULL_OPCODE" : "UNKNOWN_OPCODE");
|
||||
ACE_Stack_Trace trace;
|
||||
sLog->outError("%s", trace.c_str());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user