]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/server.cpp
Commit patch from danieldg that makes a ton of stuff const-safe for latest warn-happy...
[user/henk/code/inspircd.git] / src / server.cpp
index a73abcac271e2b06c05c78798bf04b1e7e8827d2..191c84ce0bdbe92a5362ebdb35e317942008ad06 100644 (file)
@@ -47,7 +47,7 @@ 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();
+       this->Logs->CloseLogs();
        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();
@@ -106,7 +106,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 +117,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();
 }