Core/Network: Add option to allow/disallow saving IP addresses to database

Port From (https://github.com/TrinityCore/TrinityCore/commit/5afa32e9a7e944d5fbee620c31bf6e2939ec7c5d)
This commit is contained in:
hondacrx
2022-05-29 16:15:40 -04:00
parent 25102a2ee1
commit bf6fec2eb2
5 changed files with 55 additions and 11 deletions
+3
View File
@@ -1008,6 +1008,9 @@ namespace Game
Values[WorldCfg.CallToArms10Pct] = GetDefaultValue("Pvp.FactionBalance.Pct10", 0.7f);
Values[WorldCfg.CallToArms20Pct] = GetDefaultValue("Pvp.FactionBalance.Pct20", 0.8f);
// Specifies if IP addresses can be logged to the database
Values[WorldCfg.AllowLogginIpAddressesInDatabase] = GetDefaultValue("AllowLoggingIPAddressesInDatabase", true);
// call ScriptMgr if we're reloading the configuration
if (reload)
Global.ScriptMgr.OnConfigLoad(reload);