]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/server.cpp
Probably doesnt run
[user/henk/code/inspircd.git] / src / server.cpp
index a73abcac271e2b06c05c78798bf04b1e7e8827d2..102fb35d3c80b99e01e8ee4ffb21b427df06d535 100644 (file)
@@ -47,9 +47,6 @@ void InspIRCd::Exit(int status)
 void InspIRCd::Rehash()
 {
        this->SNO->WriteToSnoMask('A', "Rehashing config file %s due to SIGHUP",ServerConfig::CleanFilename(this->ConfigFileName));
-       this->CloseLog();
-       if (!this->OpenLog(this->Config->argv, this->Config->argc))
-               this->SNO->WriteToSnoMask('A', "ERROR: Could not open logfile %s: %s", Config->logpath.c_str(), strerror(errno));
        this->RehashUsersAndChans();
        FOREACH_MOD_I(this, I_OnGarbageCollect, OnGarbageCollect());
        /*this->Config->Read(false,NULL);*/
@@ -106,7 +103,7 @@ void InspIRCd::AddServerName(const std::string &servername)
                if(**itr == servername)
                        return;
 
-       string * ns = new string(servername);
+       std::string * ns = new std::string(servername);
        servernames.push_back(ns);
 }
 
@@ -117,7 +114,7 @@ const char* InspIRCd::FindServerNamePtr(const std::string &servername)
                if(**itr == servername)
                        return (*itr)->c_str();
 
-       servernames.push_back(new string(servername));
+       servernames.push_back(new std::string(servername));
        itr = --servernames.end();
        return (*itr)->c_str();
 }