From 11c3c456b7e135cb749e65d47e39cdc8f267a599 Mon Sep 17 00:00:00 2001 From: Roc13x Date: Wed, 18 Apr 2018 18:27:45 +0100 Subject: Core/Bnet: Improve client ban messages (#21837) * Don't hide banned game accounts from list. * Display proper ban messages with suspension time remaining. * More appropriate error codes for bans and locks --- src/server/game/Server/WorldSocket.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/server/game') diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp index 95848c9eb7c..d35d5f78298 100644 --- a/src/server/game/Server/WorldSocket.cpp +++ b/src/server/game/Server/WorldSocket.cpp @@ -633,8 +633,8 @@ struct AccountInfo Game.OS = fields[9].GetString(); BattleNet.Id = fields[10].GetUInt32(); Game.Security = AccountTypes(fields[11].GetUInt8()); - BattleNet.IsBanned = fields[12].GetUInt64() != 0; - Game.IsBanned = fields[13].GetUInt64() != 0; + BattleNet.IsBanned = fields[12].GetUInt32() != 0; + Game.IsBanned = fields[13].GetUInt32() != 0; Game.IsRectuiter = fields[14].GetUInt32() != 0; if (BattleNet.Locale >= TOTAL_LOCALES) @@ -754,7 +754,7 @@ void WorldSocket::HandleAuthSessionCallback(std::shared_ptrOnFailedAccountLogin(account.Game.Id); @@ -766,7 +766,7 @@ void WorldSocket::HandleAuthSessionCallback(std::shared_ptrOnFailedAccountLogin(account.Game.Id); @@ -789,7 +789,7 @@ void WorldSocket::HandleAuthSessionCallback(std::shared_ptrOnFailedAccountLogin(account.Game.Id); DelayedCloseSocket(); @@ -801,7 +801,7 @@ void WorldSocket::HandleAuthSessionCallback(std::shared_ptr SEC_PLAYER && account.Game.Security < allowedAccountType) { - SendAuthResponseError(ERROR_DENIED); + SendAuthResponseError(ERROR_SERVER_IS_PRIVATE); TC_LOG_DEBUG("network", "WorldSocket::HandleAuthSession: User tries to login but his security level is not enough"); sScriptMgr->OnFailedAccountLogin(account.Game.Id); DelayedCloseSocket(); -- cgit v1.2.3