summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-13 08:15:35 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-13 08:15:35 +0000
commitb9552dc5beae210e5e8a626dcf636da43c962365 (patch)
treea66c2f342fa5c19f128add86731ccd1eb54bd6df /src/configreader.cpp
parent5fa3fd9274a2cb3b3cff82e85713983579de2a13 (diff)
Fix PruneWhoWas to actually work right on rehash. Add debug output to whowas. More code comments to whowas.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5734 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index df1b5f944..b1fbea0f8 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -334,8 +334,11 @@ bool ValidateWhoWas(ServerConfig* conf, const char* tag, const char* value, void
conf->WhoWasMaxGroups = 0;
if (conf->WhoWasMaxKeep < 3600)
+ {
conf->WhoWasMaxKeep = 3600;
-
+ conf->GetInstance()->Log(DEFAULT,"WARNING: <whowas:maxkeep> value less than 3600, setting to default 3600");
+ }
+ conf->GetInstance()->Log(DEBUG,"whowas:groupsize:%d maxgroups:%d maxkeep:%d",conf->WhoWasGroupSize,conf->WhoWasMaxGroups,conf->WhoWasMaxKeep);
irc::whowas::PruneWhoWas(conf->GetInstance(), conf->GetInstance()->Time());
return true;
}