]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/configreader.cpp
Allow use of absolute paths with m_nationalchars
[user/henk/code/inspircd.git] / src / configreader.cpp
index f02c5bdbba67096c3e67ceacf6988746c6980c2e..6ef5105aa5003d4c93ad216011035504f604f50d 100644 (file)
@@ -657,12 +657,13 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid)
                errstr << ce.GetReason();
        }
 
-       // write once here, to try it out and make sure its ok
-       ServerInstance->WritePID(this->PID);
-
        // Check errors before dealing with failed binds, since continuing on failed bind is wanted in some circumstances.
        valid = errstr.str().empty();
 
+       // write once here, to try it out and make sure its ok
+       if (valid)
+               ServerInstance->WritePID(this->PID);
+
        if (old)
        {
                // On first run, ports are bound later on