diff options
author | leak <leak@bitmx.net> | 2014-07-04 15:20:23 +0200 |
---|---|---|
committer | leak <leak@bitmx.net> | 2014-07-04 15:20:23 +0200 |
commit | 4f2f9e08f80f46149dbbe8e5ca469267f39ae438 (patch) | |
tree | db2f26ca2e00b0e9dd6aa7feef6a12fd04827414 /src | |
parent | 151785b9ced2d6fa2d6c422fff7c53672c18ba98 (diff) |
Fixed compilation and some copy paste error
Diffstat (limited to 'src')
-rw-r--r-- | src/server/authserver/Server/AuthSession.cpp | 2 | ||||
-rw-r--r-- | src/server/game/World/World.cpp | 2 | ||||
-rw-r--r-- | src/server/shared/Configuration/Config.cpp | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp index 6646f1203b5..f518dc7593b 100644 --- a/src/server/authserver/Server/AuthSession.cpp +++ b/src/server/authserver/Server/AuthSession.cpp @@ -595,7 +595,7 @@ bool AuthSession::_HandleLogonProof() uint32 MaxWrongPassCount = sConfigMgr->GetIntDefault("WrongPass.MaxCount", 0); // We can not include the failed account login hook. However, this is a workaround to still log this. - if (sConfigMgr->GetBoolDefault("Additional.IP.Based.Login.Logging", false)) + if (sConfigMgr->GetBoolDefault("Wrong.Password.Login.Logging", false)) { PreparedStatement* logstmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_FALP_IP_LOGGING); logstmt->setString(0, _login); diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index 48dd6565f95..ad23e016e32 100644 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -1259,8 +1259,6 @@ void World::LoadConfigSettings(bool reload) m_bool_configs[CONFIG_IP_BASED_ACTION_LOGGING] = sConfigMgr->GetBoolDefault("Allow.IP.Based.Action.Logging", false); - m_bool_configs[CONFIG_IP_BASED_LOGIN_LOGGING] = sConfigMgr->GetBoolDefault("Wrong.Password.Login.Logging", false); - // call ScriptMgr if we're reloading the configuration if (reload) sScriptMgr->OnConfigLoad(reload); diff --git a/src/server/shared/Configuration/Config.cpp b/src/server/shared/Configuration/Config.cpp index aea9d4c1366..fe61cde5594 100644 --- a/src/server/shared/Configuration/Config.cpp +++ b/src/server/shared/Configuration/Config.cpp @@ -42,7 +42,7 @@ bool ConfigMgr::LoadInitial(char const* file) return false; // Since we're using only one section per config file, we skip the section and have direct property access - _config = fullTree.begin().second; + _config = fullTree.begin()->second; } catch (std::exception const& /*ex*/) { |