diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-07 21:14:17 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-07 21:14:17 +0000 |
commit | 6b9eaeba4130acb818a63782640194c7e5bcc2fa (patch) | |
tree | b85582342008671b0f56de5acff039956fcf4eb2 /src/configreader.cpp | |
parent | f9eb4c966f3c20ac5767edc19f4f8803b17e4147 (diff) |
Move all /WHOWAS related out of core and into cmd_whowas.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6249 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index e3455818a..68904318f 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -17,6 +17,7 @@ #include "inspircd.h" #include "xline.h" #include "exitcodes.h" +#include "commands/cmd_whowas.h" std::vector<std::string> old_module_names, new_module_names, added_modules, removed_modules; @@ -369,7 +370,14 @@ bool ValidateWhoWas(ServerConfig* conf, const char* tag, const char* value, Valu 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()); + + command_t* whowas_command = conf->GetInstance()->Parser->GetHandler("WHOWAS"); + if (whowas_command) + { + std::deque<classbase*> params; + whowas_command->HandleInternal(WHOWAS_PRUNE, params); + } + return true; } |