]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/helperfuncs.cpp
Fix segfault on 'cant open logfile' on startup, on trying to call Exit. instead just...
[user/henk/code/inspircd.git] / src / helperfuncs.cpp
index 8e6627d1f5c8f35c5c0089c01c9ee3edce787668..7fba47699344968663157d0472715a93893d99db 100644 (file)
@@ -418,7 +418,7 @@ bool IsNickHandler::Call(const char* n)
 }
 
 /* return true for good ident, false else */
-bool InspIRCd::IsIdent(const char* n)
+bool IsIdentHandler::Call(const char* n)
 {
        if (!n || !*n)
                return false;
@@ -463,7 +463,7 @@ void InspIRCd::OpenLog(char** argv, int argc)
        if (!Config->log_file)
        {
                printf("ERROR: Could not write to logfile %s: %s\n\n", Config->logpath.c_str(), strerror(errno));
-               Exit(EXIT_STATUS_LOG);
+               exit(EXIT_STATUS_LOG);
        }
 
        this->Logger = new FileLogger(this, Config->log_file);