From be12603150d8392ce1596dddc7d01ff716e1e67e Mon Sep 17 00:00:00 2001 From: Spp Date: Wed, 28 Sep 2011 13:00:43 +0200 Subject: Configuration/ConfigMgr: converted from singleton to namespace with free functions. --- src/server/authserver/Server/AuthSocket.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/authserver/Server/AuthSocket.cpp') 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) { -- cgit v1.2.3