git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6081
e03df62e-2008-0410-955e-
edbf42e46eb7
{
ServerInstance->WriteOpers("%s is rehashing config file %s",user->nick,ServerConfig::CleanFilename(CONFIG_FILE));
ServerInstance->CloseLog();
- ServerInstance->OpenLog(NULL,0);
+ ServerInstance->OpenLog(ServerInstance->Config->argv, ServerInstance->Config->argc);
ServerInstance->RehashUsersAndChans();
ServerInstance->Config->Read(false,user);
}
void InspIRCd::OpenLog(char** argv, int argc)
{
Config->MyDir = ServerConfig::GetFullProgDir(argv,argc);
- Config->argv = argv;
- Config->argc = argc;
if (!*this->LogFileName)
{
this->chanlist = new chan_hash();
this->Config = new ServerConfig(this);
+
+ this->Config->argv = argv;
+ this->Config->argc = argc;
+
this->Config->opertypes.clear();
this->Config->operclass.clear();
this->SNO = new SnomaskManager(this);