X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fhelperfuncs.cpp;h=465f55d6f9e0ede43da0438b8d9a0e7d99f4f3b8;hb=4f946291b7fd022b50fe5aacb9b851cebfbb2278;hp=8cb62e72f3c16896383016c8cbb0aa3b07ae37e9;hpb=11f1f2126c3e1f1cb91f5d6e273eba2850ca61a8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 8cb62e72f..465f55d6f 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -36,8 +36,7 @@ void InspIRCd::Log(int level, const char* text, ...) void InspIRCd::Log(int level, const std::string &text) { - this->Logs->Log("WARNING", DEFAULT, "Deprecated call to InspIRCd::Log()! - log message follows"); - this->Logs->Log("DEPRECATED", level, text); + this->Logs->Log("DEPRECATED", level, "Deprecated use of InspIRCd::Log(), message = %s", text.c_str()); } std::string InspIRCd::GetServerDescription(const char* servername) @@ -343,7 +342,7 @@ void InspIRCd::CheckRoot() if (geteuid() == 0) { printf("WARNING!!! You are running an irc server as ROOT!!! DO NOT DO THIS!!!\n\n"); - this->Log(DEFAULT,"Cant start as root"); + this->Logs->Log("STARTUP",DEFAULT,"Cant start as root"); Exit(EXIT_STATUS_ROOT); } } @@ -353,7 +352,7 @@ void InspIRCd::CheckDie() if (*Config->DieValue) { printf("WARNING: %s\n\n",Config->DieValue); - this->Log(DEFAULT,"Died because of tag: %s",Config->DieValue); + this->Logs->Log("CONFIG",DEFAULT,"Died because of tag: %s",Config->DieValue); Exit(EXIT_STATUS_DIETAG); } }