From be476a9d81660175f57657fc4ea77eb41fee4c2b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 4 Jul 2013 14:55:46 +0100 Subject: Fix users being able to set to an invalid value. --- src/configreader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/configreader.cpp b/src/configreader.cpp index 31287b396..85cf357c4 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -433,6 +433,9 @@ void ServerConfig::Fill() InvBypassModes = options->getBool("invitebypassmodes", true); NoSnoticeStack = options->getBool("nosnoticestack", false); + if (Network.find(' ') != std::string::npos) + throw CoreException(Network + " is not a valid network name. A network name must not contain spaces."); + range(SoftLimit, 10, ServerInstance->SE->GetMaxFds(), ServerInstance->SE->GetMaxFds(), ""); range(MaxTargets, 1, 31, 20, ""); range(NetBufferSize, 1024, 65534, 10240, ""); -- cgit v1.2.3