summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index fedc8149f..3149d74ea 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -397,6 +397,14 @@ InspIRCd::InspIRCd(int argc, char** argv)
ChangeWindowsSpecificPointers(this);
#endif
+ strlcpy(Config->MyExecutable,argv[0],MAXBUF);
+
+ if (!this->OpenLog(argv, argc))
+ {
+ printf("ERROR: Could not open logfile %s: %s\n\n", Config->logpath.c_str(), strerror(errno));
+ Exit(EXIT_STATUS_LOG);
+ }
+
if (!ServerConfig::FileExists(this->ConfigFileName))
{
printf("ERROR: Cannot open config file: %s\nExiting...\n", this->ConfigFileName);
@@ -414,14 +422,6 @@ InspIRCd::InspIRCd(int argc, char** argv)
Config->forcedebug = do_debug;
Config->writelog = !do_nolog;
- strlcpy(Config->MyExecutable,argv[0],MAXBUF);
-
- if (!this->OpenLog(argv, argc))
- {
- printf("ERROR: Could not open logfile %s: %s\n\n", Config->logpath.c_str(), strerror(errno));
- Exit(EXIT_STATUS_LOG);
- }
-
this->Modules = new ModuleManager(this);
this->stats = new serverstats();
this->Timers = new TimerManager(this);