diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-02 16:11:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-02 16:11:34 +0000 |
commit | 1badc2dd1f284332fe254f0ee12646c33b416086 (patch) | |
tree | 0854cf703114b13db7cc27d9fca0f7e8e55fdbd1 | |
parent | 72948525ec3ef03fe46553349c1892cafa5ac18c (diff) |
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
-rw-r--r-- | src/inspircd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4e11318cc..f5db0cebd 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -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); |