From b9552dc5beae210e5e8a626dcf636da43c962365 Mon Sep 17 00:00:00 2001 From: peavey Date: Mon, 13 Nov 2006 08:15:35 +0000 Subject: 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 --- src/configreader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/configreader.cpp') 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: 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; } -- cgit v1.2.3