diff options
| author | 2021-11-26 17:25:20 +0000 | |
|---|---|---|
| committer | 2021-11-26 17:25:20 +0000 | |
| commit | 2c2fc2aef9800b65c070d42f56a221c3f9efc773 (patch) | |
| tree | 367d507ef094ef796c9c44b3d50d7e9d9d722299 /src/configreader.cpp | |
| parent | Move configuration of connect classes to the ConnectClass class. (diff) | |
Reject config files created using broken tutorials.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 2592cd1ed..f4c3b3d0b 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -406,6 +406,15 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) } } + // Reject the broken configs that outdated tutorials keep pushing. + if (!ConfValue("power")->getString("pause").empty()) + { + errstr << "You appear to be using a config file from an ancient outdated tutorial!" << std::endl + << "This will almost certainly not work. You should instead create a config" << std::endl + << "file using the examples shipped with InspIRCd or by referring to the" << std::endl + << "docs available at " INSPIRCD_DOCS "configuration." << std::endl; + } + Fill(); // Handle special items |
