]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/server.cpp
Add skeleton functions for UID stuff.
[user/henk/code/inspircd.git] / src / server.cpp
index d993e7b6370c69bda805f5538707415276d3aab6..1ab5b5efdc51eb9614725c66b7f0d35ba3bbe9c9 100644 (file)
@@ -32,7 +32,7 @@ void InspIRCd::SignalHandler(int signal)
 void InspIRCd::Exit(int status)
 {
 #ifdef WINDOWS
-       WindowsIPC->Close();
+       delete WindowsIPC;
 #endif
        if (this)
        {
@@ -46,7 +46,8 @@ void InspIRCd::Rehash()
 {
        this->WriteOpers("*** Rehashing config file %s due to SIGHUP",ServerConfig::CleanFilename(this->ConfigFileName));
        this->CloseLog();
-       this->OpenLog(this->Config->argv, this->Config->argc);
+       if (!this->OpenLog(this->Config->argv, this->Config->argc))
+               this->WriteOpers("*** 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);
@@ -130,3 +131,10 @@ bool InspIRCd::FindServerName(const std::string &servername)
        return false;
 }
 
+std::string InspIRCd::GetUID()
+{
+
+}
+
+
+