diff options
| author | 2020-02-06 01:18:07 +0000 | |
|---|---|---|
| committer | 2020-02-06 01:53:16 +0000 | |
| commit | 0966ad5a0ad2343133d075618db442294380e854 (patch) | |
| tree | 7f30a1d8c74f820d814abd71e3a5546cbb747de3 /src/configreader.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
| download | inspircd++-0966ad5a0ad2343133d075618db442294380e854.tar.gz inspircd++-0966ad5a0ad2343133d075618db442294380e854.tar.bz2 inspircd++-0966ad5a0ad2343133d075618db442294380e854.zip | |
Make WritePID read directly from the config.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 8fc8a9419..286454d1d 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -383,7 +383,6 @@ void ServerConfig::Fill() FullHostInTopic = options->getBool("hostintopic"); MaxTargets = security->getUInt("maxtargets", 20, 1, 31); DefaultModes = options->getString("defaultmodes", "not"); - PID = ConfValue("pid")->getString("file"); c_ipv4_range = ConfValue("cidr")->getUInt("ipv4clone", 32, 1, 32); c_ipv6_range = ConfValue("cidr")->getUInt("ipv6clone", 128, 1, 128); Limits = ServerLimits(ConfValue("limits")); @@ -489,7 +488,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) // write once here, to try it out and make sure its ok if (valid) - ServerInstance->WritePID(this->PID, !old); + ServerInstance->WritePID(!old); ConfigTagList binds = ConfTags("bind"); if (binds.first == binds.second) |
