diff options
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.cpp b/src/config.cpp index 6a8380464..7b322f8c9 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -697,7 +697,7 @@ const Anope::string &File::GetName() const Anope::string File::GetPath() const { - return (this->executable ? "" : Anope::ConfigDir + "/") + this->name; + return this->executable ? this->name : Anope::ExpandConfig(this->name); } bool File::IsOpen() const @@ -708,7 +708,7 @@ bool File::IsOpen() const bool File::Open() { this->Close(); - this->fp = (this->executable ? popen(this->name.c_str(), "r") : fopen((Anope::ConfigDir + "/" + this->name).c_str(), "r")); + this->fp = (this->executable ? popen(GetPath().c_str(), "r") : fopen(GetPath().c_str(), "r")); return this->fp != NULL; } |