diff options
author | Attila Molnar <attilamolnar@hush.com> | 2012-10-14 12:40:52 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2012-10-14 12:40:52 -0700 |
commit | 336e30f61f9cb04620f5be46189753636f4f9d49 (patch) | |
tree | 944335aad069ebf520772a6a46268bce1879c23b /src/helperfuncs.cpp | |
parent | 81e644a40b7eead5402fe38ccb7f076b54344911 (diff) | |
parent | ebdaf368e137fc933e648ee88a08a4f83e796f87 (diff) |
Merge pull request #338 from ChrisTX/insp20+iostream
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 |