From 2c2fc2aef9800b65c070d42f56a221c3f9efc773 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 26 Nov 2021 17:25:20 +0000 Subject: Reject config files created using broken tutorials. --- src/configreader.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.3.1-10-gc9f91