diff --git a/src/game/Server/WorldSession.cpp b/src/game/Server/WorldSession.cpp index f77ea5f59..ff11e727e 100644 --- a/src/game/Server/WorldSession.cpp +++ b/src/game/Server/WorldSession.cpp @@ -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); } diff --git a/src/game/Server/WorldSocket.cpp b/src/game/Server/WorldSocket.cpp index 00aa19ff4..ea90cb0a1 100644 --- a/src/game/Server/WorldSocket.cpp +++ b/src/game/Server/WorldSocket.cpp @@ -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 { @@ -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)) { @@ -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)."); @@ -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)."); @@ -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"); @@ -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).");