]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Merge pull request #574 from SaberUK/master+build-comment-cleanup
authorAttila Molnar <attilamolnar@hush.com>
Thu, 4 Jul 2013 16:12:41 +0000 (09:12 -0700)
committerAttila Molnar <attilamolnar@hush.com>
Thu, 4 Jul 2013 16:12:41 +0000 (09:12 -0700)
Clean up unneeded build system comments.

src/configreader.cpp

index 31287b396c27348cbf5d967e32f05df706d88408..85cf357c48eecdf250f300316f4870c00199c0a4 100644 (file)
@@ -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(), "<performance:softlimit>");
        range(MaxTargets, 1, 31, 20, "<security:maxtargets>");
        range(NetBufferSize, 1024, 65534, 10240, "<performance:netbuffersize>");