- // XXX write this to a remote user correctly
- user->WriteNumeric(382, "%s %s :Rehashing",user->nick,ServerConfig::CleanFilename(ServerInstance->ConfigFileName));
-
- std::string m = std::string(user->nick) + " is rehashing config file " + ServerConfig::CleanFilename(ServerInstance->ConfigFileName) + " on " + ServerInstance->Config->ServerName;
- ServerInstance->SNO->WriteToSnoMask('A', m);
- ServerInstance->PI->SendSNONotice("A", m);
- ServerInstance->Logs->CloseLogs();
-
- if (!ServerInstance->OpenLog(ServerInstance->Config->argv, ServerInstance->Config->argc))
- {
- m = std::string("ERROR: Could not open logfile ") + ServerInstance->Config->logpath + ":" + strerror(errno);
- ServerInstance->SNO->WriteToSnoMask('A', m);
- ServerInstance->PI->SendSNONotice("A", m);