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;
for (std::set<std::string>::iterator removing = removed_modules.begin(); removing != removed_modules.end(); removing++)
{
+ // Don't remove cmd_*.so, just remove m_*.so
+ if (removing->c_str()[0] == 'c')
+ continue;
if (ServerInstance->Modules->Unload(removing->c_str()))
{
ServerInstance->SNO->WriteToSnoMask('a', "*** REHASH UNLOADED MODULE: %s",removing->c_str());