diff options
author | ChrisTX <chris@rev-crew.info> | 2012-10-14 02:13:49 +0200 |
---|---|---|
committer | ChrisTX <chris@rev-crew.info> | 2012-10-14 02:13:49 +0200 |
commit | ebdaf368e137fc933e648ee88a08a4f83e796f87 (patch) | |
tree | 72c7969e860704c99fc2fbe8537a248fa71f9e7e /src/helperfuncs.cpp | |
parent | 272208502c426f5bb6abdb13b8986b686afbb904 (diff) |
Replace printf(_c) with iostream
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 7351a07de..a6df520c5 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -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 |