aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Server/AuthSession.cpp
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2020-08-04 09:36:47 +0000
committerGitHub <noreply@github.com>2020-08-04 11:36:47 +0200
commit07fd84b679fd6958b7e669a96c78783875e1b949 (patch)
tree898e098e9985a08ca84cc9077b132279f43df945 /src/server/authserver/Server/AuthSession.cpp
parentbc6137d08c08ef2fb29e871cf5659c4d1c5c41ab (diff)
Core/Misc: Fix static analysis issues (#25194)
Diffstat (limited to 'src/server/authserver/Server/AuthSession.cpp')
-rw-r--r--src/server/authserver/Server/AuthSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp
index 0c803798074..9260558c613 100644
--- a/src/server/authserver/Server/AuthSession.cpp
+++ b/src/server/authserver/Server/AuthSession.cpp
@@ -389,7 +389,7 @@ void AuthSession::LogonChallengeCallback(PreparedQueryResult result)
TC_LOG_DEBUG("server.authserver", "[AuthChallenge] Account '%s' is not locked to ip", _accountInfo.Login.c_str());
if (_accountInfo.LockCountry.empty() || _accountInfo.LockCountry == "00")
TC_LOG_DEBUG("server.authserver", "[AuthChallenge] Account '%s' is not locked to country", _accountInfo.Login.c_str());
- else if (!_accountInfo.LockCountry.empty() && !_ipCountry.empty())
+ else if (!_ipCountry.empty())
{
TC_LOG_DEBUG("server.authserver", "[AuthChallenge] Account '%s' is locked to country: '%s' Player country is '%s'", _accountInfo.Login.c_str(), _accountInfo.LockCountry.c_str(), _ipCountry.c_str());
if (_ipCountry != _accountInfo.LockCountry)