mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Fixed compilation and some copy paste error
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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*/)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user