Skip to content

Commit

Permalink
Some more styling corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1arm committed Aug 26, 2024
1 parent f3e715f commit 3ac82c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/Server/WorldSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,10 +816,12 @@ void WorldSession::SendAccountDataTimes(uint32 mask)
data << uint8(1);
data << uint32(mask); // type mask
for (uint32 i = 0; i < NUM_ACCOUNT_DATA_TYPES; ++i)
{
if (mask & (1 << i))
{
data << uint32(GetAccountData(AccountDataType(i))->Time);// also unix time
}
}
SendPacket(&data);
}

Expand Down
7 changes: 7 additions & 0 deletions src/game/Server/WorldSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,12 @@ int WorldSocket::SendPacket(const WorldPacket& pkt)
}

if (!pct.empty())
{
if (m_OutBuffer->copy((char*) pct.contents(), pct.size()) == -1)
{
MANGOS_ASSERT(false);
}
}
}
else
{
Expand Down Expand Up @@ -745,6 +747,7 @@ int WorldSocket::ProcessIncoming(WorldPacket* new_pct)
sLog.outError("WorldSocket::ProcessIncoming: Player send CMSG_AUTH_SESSION again");
return -1;
}

#ifdef ENABLE_ELUNA
if (!sEluna->OnPacketReceive(m_Session, *new_pct))
{
Expand Down Expand Up @@ -839,6 +842,7 @@ int WorldSocket::HandleAuthSession(WorldPacket& recvPacket)
{
WorldPacket packet(SMSG_AUTH_RESPONSE, 1);
packet << uint8(AUTH_VERSION_MISMATCH);

SendPacket(packet);

sLog.outError("WorldSocket::HandleAuthSession: Sent Auth Response (version mismatch).");
Expand Down Expand Up @@ -872,6 +876,7 @@ int WorldSocket::HandleAuthSession(WorldPacket& recvPacket)
{
WorldPacket packet(SMSG_AUTH_RESPONSE, 1);
packet << uint8(AUTH_UNKNOWN_ACCOUNT);

SendPacket(packet);

sLog.outError("WorldSocket::HandleAuthSession: Sent Auth Response (unknown account).");
Expand Down Expand Up @@ -958,6 +963,7 @@ int WorldSocket::HandleAuthSession(WorldPacket& recvPacket)
{
WorldPacket packet(SMSG_AUTH_RESPONSE, 1);
packet << uint8(AUTH_UNAVAILABLE);

SendPacket(packet);

BASIC_LOG("WorldSocket::HandleAuthSession: User tries to login but his security level is not enough");
Expand Down Expand Up @@ -991,6 +997,7 @@ int WorldSocket::HandleAuthSession(WorldPacket& recvPacket)
{
WorldPacket packet(SMSG_AUTH_RESPONSE, 1);
packet << uint8(AUTH_FAILED);

SendPacket(packet);

sLog.outError("WorldSocket::HandleAuthSession: Sent Auth Response (authentification failed).");
Expand Down

0 comments on commit 3ac82c2

Please sign in to comment.