From e21c3bb1408eea41d8f7c6dfbe2a58d023feada7 Mon Sep 17 00:00:00 2001 From: om Date: Fri, 7 Apr 2006 12:21:11 +0000 Subject: 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 --- src/inspircd_io.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inspircd_io.cpp') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 9753e182e..ddad3d388 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -52,8 +52,8 @@ ServerConfig::ServerConfig() *CustomVersion = *motd = *rules = *PrefixQuit = *DieValue = *DNSServer = '\0'; *OperOnlyStats = *ModPath = *MyExecutable = *DisabledCommands = *PID = '\0'; log_file = NULL; - OperSpyWhois = nofork = HideBans = HideSplits = false; - AllowHalfop = true; + forcedebug = OperSpyWhois = nofork = HideBans = HideSplits = false; + writelog = AllowHalfop = true; dns_timeout = DieDelay = 5; MaxTargets = 20; NetBufferSize = 10240; @@ -1320,7 +1320,7 @@ bool ServerConfig::ConfValueBool(ConfigDataHash &target, const std::string &tag, int ServerConfig::ConfValueEnum(ConfigDataHash &target, const char* tag) { - return ConfValueEnum(target, std::string(tag)); + return target.count(tag); } int ServerConfig::ConfValueEnum(ConfigDataHash &target, const std::string &tag) -- cgit v1.2.3