diff options
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 7248ff099..b8d675ef1 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1673,16 +1673,12 @@ bool ServerConfig::DoInclude(const std::string &file, bool allowexeinc) if ((newfile[0] != '/') && (!StartsWithWindowsDriveLetter(newfile))) { - if((pos = confpath.rfind("/")) != std::string::npos) + pos = confpath.rfind("/") + if(pos != std::string::npos) { /* Leaves us with just the path */ newfile = confpath.substr(0, pos) + std::string("/") + newfile; } - else - { - errstr << "Couldn't get config path from: " << ServerInstance->ConfigFileName << std::endl; - return false; - } } FILE* conf = fopen(newfile.c_str(), "r"); |