summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-03 21:06:44 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-03 21:06:44 +0000
commit17fd32bf7492aa40ce531b64c81754f039907ca7 (patch)
tree52fce21614c7697cee868135fe1c715be09dfe0e /src/configreader.cpp
parent1c1c5fc3f01c42a09d34594989679bbc8fb21c0d (diff)
Remove HandleInternal and HandleServer, they are duplicated by Request* and FakeUser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11672 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index eaea3f006..a41e5d07f 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -442,11 +442,10 @@ static bool ValidateWhoWas(ServerConfig* conf, const char*, const char*, ValueIt
conf->GetInstance()->Logs->Log("CONFIG",DEFAULT,"WARNING: <whowas:maxkeep> value less than 3600, setting to default 3600");
}
- Command* whowas_command = conf->GetInstance()->Parser->GetHandler("WHOWAS");
- if (whowas_command)
+ Module* whowas = conf->GetInstance()->Modules->Find("cmd_whowas.so");
+ if (whowas)
{
- std::deque<classbase*> params;
- whowas_command->HandleInternal(WHOWAS_PRUNE, params);
+ WhowasRequest(NULL, whowas, WhowasRequest::WHOWAS_PRUNE).Send();
}
return true;