diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/configreader.cpp | 2 | ||||
-rw-r--r-- | src/inspircd.cpp | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index b8d675ef1..540653567 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1673,7 +1673,7 @@ bool ServerConfig::DoInclude(const std::string &file, bool allowexeinc) if ((newfile[0] != '/') && (!StartsWithWindowsDriveLetter(newfile))) { - pos = confpath.rfind("/") + pos = confpath.rfind("/"); if(pos != std::string::npos) { /* Leaves us with just the path */ diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 56e43c3ed..a932b95e1 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -401,15 +401,6 @@ InspIRCd::InspIRCd(int argc, char** argv) : this->Config->argv = argv; this->Config->argc = argc; - if (chdir(Config->GetFullProgDir().c_str())) - { - printf("Unable to change to my directory: %s\nAborted.", strerror(errno)); - exit(0); - } - - this->Config->opertypes.clear(); - this->Config->operclass.clear(); - this->TIME = this->OLDTIME = this->startup_time = time(NULL); srand(this->TIME); |