X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fserver.cpp;h=a73abcac271e2b06c05c78798bf04b1e7e8827d2;hb=d555db40f4b39f10ad06c2449b42711c1e74105f;hp=caeaa463bad4a0c47f23d3f9d0f5042649c6f077;hpb=ac3575b29969fa58251139569e5f836b62107553;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/server.cpp b/src/server.cpp index caeaa463b..a73abcac2 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * InspIRCd: (C) 2002-2008 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -33,7 +33,6 @@ void InspIRCd::SignalHandler(int signal) void InspIRCd::Exit(int status) { - printf("exit with status %d\n", status); #ifdef WINDOWS delete WindowsIPC; #endif @@ -42,19 +41,18 @@ void InspIRCd::Exit(int status) this->SendError("Exiting with status " + ConvToStr(status) + " (" + std::string(ExitCodes[status]) + ")"); this->Cleanup(); } - printf("Exit done.\n"); exit (status); } void InspIRCd::Rehash() { - this->WriteOpers("*** Rehashing config file %s due to SIGHUP",ServerConfig::CleanFilename(this->ConfigFileName)); + 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->WriteOpers("*** ERROR: Could not open logfile %s: %s", Config->logpath.c_str(), strerror(errno)); + 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); + /*this->Config->Read(false,NULL);*/ this->ResetMaxBans(); this->Res->Rehash(); FOREACH_MOD_I(this,I_OnRehash,OnRehash(NULL,"")); @@ -63,9 +61,9 @@ void InspIRCd::Rehash() void InspIRCd::RehashServer() { - this->WriteOpers("*** Rehashing config file"); + this->SNO->WriteToSnoMask('A', "Rehashing config file"); this->RehashUsersAndChans(); - this->Config->Read(false,NULL); + /*this->Config->Read(false,NULL);*/ this->ResetMaxBans(); this->Res->Rehash(); } @@ -79,7 +77,7 @@ std::string InspIRCd::GetVersionString() } else { - snprintf(versiondata,MAXBUF,"%s %s :%s [FLAGS=%s,%s,%d]",VERSION,Config->ServerName,SYSTEM,REVISION,SE->GetName().c_str(),Config->sid); + snprintf(versiondata,MAXBUF,"%s %s :%s [FLAGS=%s,%s,%s]",VERSION,Config->ServerName,SYSTEM,REVISION,SE->GetName().c_str(),Config->sid); } return versiondata; }