]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/helperfuncs.cpp
Replace printf(_c) with iostream
[user/henk/code/inspircd.git] / src / helperfuncs.cpp
index 7351a07de0bcb9d89e14b5ab19a2d3368e3e2eb4..a6df520c5d2d10fddb7a3306fd0ad35e9052d27e 100644 (file)
@@ -32,6 +32,7 @@
 #include "inspircd.h"
 #include "xline.h"
 #include "exitcodes.h"
+#include <iostream>
 
 std::string InspIRCd::GetServerDescription(const std::string& servername)
 {
@@ -319,8 +320,8 @@ void InspIRCd::CheckRoot()
 #ifndef _WIN32
        if (geteuid() == 0)
        {
-               printf("WARNING!!! You are running an irc server as ROOT!!! DO NOT DO THIS!!!\n\n");
-               this->Logs->Log("STARTUP",DEFAULT,"Cant start as root");
+               std::cout << "ERROR: You are running an irc server as root! DO NOT DO THIS!" << std::endl << std::endl;
+               this->Logs->Log("STARTUP",DEFAULT,"Can't start as root");
                Exit(EXIT_STATUS_ROOT);
        }
 #endif