From e1756298af14cc6b2e158245def9f4d38dbfb799 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Fri, 26 Nov 2021 19:07:08 +0100 Subject: [PATCH] Fix doubled consent settings in ServerConfig --- Changelog.md | 1 + src/TConfig.cpp | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index e5ace3e..9510032 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,6 +3,7 @@ - CHANGED entire plugin Lua implementation (rewrite) - CHANGED moved *all* functions into MP.\* - CHANGED all files of a Lua plugin to share a Lua state (no more state-per-file) +- ADDED Commandline options. Run with `--help` to see all options. - ADDED `MP.GetOSName() -> string`: Returns "Linux", "Windows" or "Other" - ADDED `MP.GetServerVersion() -> string`: Returns major,minor,patch version - ADDED `MP.IsPlayerGuest(id) -> boolean`: Whether player with id is a guest diff --git a/src/TConfig.cpp b/src/TConfig.cpp index a6f20c2..ba90e39 100644 --- a/src/TConfig.cpp +++ b/src/TConfig.cpp @@ -93,8 +93,6 @@ void TConfig::CreateConfigFile(std::string_view name) { data["General"][StrMap.data()] = Application::Settings.MapName; data["General"][StrDescription.data()] = Application::Settings.ServerDesc; data["General"][StrResourceFolder.data()] = Application::Settings.Resource; - data["General"][StrSendErrors.data()] = Application::Settings.SendErrors; - data["General"][StrSendErrorsMessageEnabled.data()] = Application::Settings.SendErrorsMessageEnabled; std::ofstream ofs { std::string(name) }; if (ofs.good()) { @@ -106,7 +104,6 @@ void TConfig::CreateConfigFile(std::string_view name) { beammp_error("There was no \"" + std::string(mConfigFileName) + "\" file (this is normal for the first time running the server), so one was generated for you. It was automatically filled with the settings from your Server.cfg, if you have one. Please open ServerConfig.toml and ensure your AuthKey and other settings are filled in and correct, then restart the server. The old Server.cfg file will no longer be used and causes a warning if it exists from now on."); mFailed = true; ofs.close(); - // FIXME WriteSendErrors(std::string(name)); } else { beammp_error("Couldn't create " + std::string(name) + ". Check permissions, try again, and contact support if it continues not to work.");