diff options
author | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-09-27 20:33:15 +0000 |
---|---|---|
committer | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-09-27 20:33:15 +0000 |
commit | 1078718b3c90e9653ffb1d92054c7740abf11356 (patch) | |
tree | fa6427a8ac27d173fe251e2e0f338cba5c5f19f3 /src/inspircd.cpp | |
parent | b1a82220c1433c0cff2465300bc2b2dfbf4cd8eb (diff) |
Combined The file Modules and Config file existance checkers into one function
Added 'Exists' To the FileReader class of the Module API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@192 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 6350bf659..23d32c830 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2648,8 +2648,9 @@ int main (int argc, char *argv[]) { Start(); log(DEBUG,"*** InspIRCd starting up!"); - if (!CheckConfig()) + if (!FileExists(CONFIG_FILE)) { + printf("ERROR: Cannot open config file: %s\nExiting...\n",CONFIG_FILE); log(DEBUG,"main: no config"); printf("ERROR: Your config file is missing, this IRCd will self destruct in 10 seconds!\n"); Exit(ERROR); @@ -4090,7 +4091,7 @@ int InspIRCd(void) /* If The File Doesnt exist, Trying to load it * Will Segfault the IRCd.. So, check to see if * it Exists, Before Proceeding. */ - if (CheckModule(modfile)) + if (FileExists(modfile)) { factory[count] = new ircd_module(modfile); if (factory[count]->LastError()) |