modify authkey notice to mention the possibility of entering an invalid key

this makes it clear that you may put anything as your key, as long as
you only want private servers.
This commit is contained in:
Lion Kortlepel
2022-11-02 23:31:43 +01:00
parent b0b4dc51b0
commit 7f47337e1b

View File

@@ -177,7 +177,7 @@ void TConfig::ParseFromFile(std::string_view name) {
FlushToFile();
// all good so far, let's check if there's a key
if (Application::GetSettingString(StrAuthKey).empty()) {
beammp_error("No AuthKey specified in the \"" + std::string(mConfigFileName) + "\" file. Please get an AuthKey, enter it into the config file, and restart this server.");
beammp_error("No AuthKey specified in the \"" + std::string(mConfigFileName) + "\" file. Please get an AuthKey, enter it into the config file, and restart this server. Alternatively, if you only want a private server (one that doesn't show up in the server list), you may put anything as your AuthKey, like \"hello\".");
Application::SetSubsystemStatus("Config", Application::Status::Bad);
mFailed = true;
return;