diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-24 14:32:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-24 14:32:06 +0000 |
commit | 1dd466029961608a5008d8596d50ecc9adf898a4 (patch) | |
tree | 378ebc2d5ab607805fcb4cae47c3fdd3d8911933 /src/configreader.cpp | |
parent | 2aca48ec49c9ef598fa4f177ee2cb2dd96ab7f3c (diff) |
This segfaults atm. i'm working on it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9016 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index d2a7ccfd4..be2b52ae1 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1336,6 +1336,8 @@ int ServerConfig::DoDownloads() CompletedFiles[x->first] = true; } + ServerInstance->Logs->Log("CONFIG",DEBUG,"Returning %d from DoDownloads()", new_downloads); + return new_downloads; } @@ -1398,7 +1400,10 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, const char* filename, std::o if (!scan_for_includes_only) { if (x->second) + { + ServerInstance->Logs->Log("CONFIG",DEBUG,"Retrieve conf"); conf = IncludedFiles.find(filename)->second; + } else { errorstream << "File " << filename << " could not be opened." << std::endl; @@ -1408,6 +1413,9 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, const char* filename, std::o } } + if (!conf) + return false; + ServerInstance->Logs->Log("CONFIG",DEBUG,"Start to read conf %s %08lx", filename, conf); /* Start reading characters... */ |