From 1badc2dd1f284332fe254f0ee12646c33b416086 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 2 Jun 2007 16:11:34 +0000 Subject: 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 --- src/inspircd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/inspircd.cpp') 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); -- cgit v1.2.3