summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-07 12:21:11 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-07 12:21:11 +0000
commite21c3bb1408eea41d8f7c6dfbe2a58d023feada7 (patch)
treef52e676ab23434f52e6df83094072b292b517349 /src/inspircd.cpp
parent69d39e088765b39b21094ea57e298ef9b429a20e (diff)
Slight optimisation to config reader, looks nicer even if it's not faster.
Make ./inspircd script use -nolog (it already used -debug, which didn't exist until now!?) Add commandline options -nolog and -debug, -debug forces all log messages to be output regardless of level. -nolog stops the logfile being written, so you can run with -debug without filling up your disk. make clean && make install, apparently some of the core doesn't depend on inspircd_io.h in the makefiles..so it'll probably segfault if you don't. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3841 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 5d77e6d75..79a6f1976 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -171,15 +171,23 @@ InspIRCd::InspIRCd(int argc, char** argv)
{
Config->nofork = true;
}
- if (!strcmp(argv[i],"-wait"))
+ else if(!strcmp(argv[i],"-debug"))
+ {
+ Config->forcedebug = true;
+ }
+ else if(!strcmp(argv[i],"-nolog"))
+ {
+ Config->writelog = false;
+ }
+ else if (!strcmp(argv[i],"-wait"))
{
sleep(6);
}
- if (!strcmp(argv[i],"-nolimit"))
+ else if (!strcmp(argv[i],"-nolimit"))
{
printf("WARNING: The `-nolimit' option is deprecated, and now on by default. This behaviour may change in the future.\n");
}
- if (!strcmp(argv[i],"-logfile"))
+ else if (!strcmp(argv[i],"-logfile"))
{
if (argc > i+1)
{
@@ -867,4 +875,3 @@ int main(int argc, char** argv)
}
return 0;
}
-