diff options
Diffstat (limited to 'src/server/authserver/Server/AuthSocket.cpp')
-rwxr-xr-x | src/server/authserver/Server/AuthSocket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/authserver/Server/AuthSocket.cpp b/src/server/authserver/Server/AuthSocket.cpp index bffe406ddfc..67cb2a9f637 100755 --- a/src/server/authserver/Server/AuthSocket.cpp +++ b/src/server/authserver/Server/AuthSocket.cpp @@ -639,7 +639,7 @@ bool AuthSocket::_HandleLogonProof() sLog->outBasic("[AuthChallenge] account %s tried to login with wrong password!", _login.c_str()); - uint32 MaxWrongPassCount = sConfig->GetIntDefault("WrongPass.MaxCount", 0); + uint32 MaxWrongPassCount = ConfigMgr::GetIntDefault("WrongPass.MaxCount", 0); if (MaxWrongPassCount > 0) { //Increment number of failed logins by one and if it reaches the limit temporarily ban that account or IP @@ -656,8 +656,8 @@ bool AuthSocket::_HandleLogonProof() if (failed_logins >= MaxWrongPassCount) { - uint32 WrongPassBanTime = sConfig->GetIntDefault("WrongPass.BanTime", 600); - bool WrongPassBanType = sConfig->GetBoolDefault("WrongPass.BanType", false); + uint32 WrongPassBanTime = ConfigMgr::GetIntDefault("WrongPass.BanTime", 600); + bool WrongPassBanType = ConfigMgr::GetBoolDefault("WrongPass.BanType", false); if (WrongPassBanType) { |