diff options
| author | 2013-07-10 18:11:48 +0100 | |
|---|---|---|
| committer | 2013-08-12 16:53:33 +0100 | |
| commit | 29822a263b3b408559257e9ef2bd29167e7573fa (patch) | |
| tree | 85a67980fb21b7a61756761558fef396adad7dd7 /src/inspircd.cpp | |
| parent | Require privs given on initial join to be in <options:defaultmodes>. (diff) | |
| download | inspircd++-29822a263b3b408559257e9ef2bd29167e7573fa.tar.gz inspircd++-29822a263b3b408559257e9ef2bd29167e7573fa.tar.bz2 inspircd++-29822a263b3b408559257e9ef2bd29167e7573fa.zip | |
Add <path> keys for all of the compile-time paths.
Also, make all paths in the config relative to their associated
directory. This reverts a change in 2.0 which turned out to be a
terrible idea, especially for system-wide installations.
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 59c65b931..f2095c4a2 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -207,7 +207,7 @@ void InspIRCd::WritePID(const std::string &filename) #ifndef _WIN32 std::string fname(filename); if (fname.empty()) - fname = DATA_PATH "/inspircd.pid"; + fname = ServerInstance->Config->Paths.PrependData("inspircd.pid"); std::ofstream outfile(fname.c_str()); if (outfile.is_open()) { |
