Chdir to bin dir on starting, allows relative paths to the bin dir to always work even when we're not started from our dir

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7213 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-06-02 16:11:34 +00:00
parent 72948525ec
commit 1badc2dd1f

View File

@ -388,6 +388,8 @@ InspIRCd::InspIRCd(int argc, char** argv)
this->Config->argv = argv;
this->Config->argc = argc;
chdir(Config->GetFullProgDir());
this->Config->opertypes.clear();
this->Config->operclass.clear();
this->SNO = new SnomaskManager(this);