diff options
-rw-r--r-- | src/userprocess.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 76be62d71..24bb91f94 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -386,23 +386,23 @@ void OpenLog(char** argv, int argc) void CheckRoot() { - if (geteuid() == 0) - { - printf("WARNING!!! You are running an irc server as ROOT!!! DO NOT DO THIS!!!\n\n"); - log(DEFAULT,"InspIRCd: startup: not starting with UID 0!"); - Exit(ERROR); - } + if (geteuid() == 0) + { + printf("WARNING!!! You are running an irc server as ROOT!!! DO NOT DO THIS!!!\n\n"); + log(DEFAULT,"InspIRCd: startup: not starting with UID 0!"); + Exit(ERROR); + } } void CheckDie() { - if (*Config->DieValue) - { - printf("WARNING: %s\n\n",Config->DieValue); - log(DEFAULT,"Ut-Oh, somebody didn't read their config file: '%s'",Config->DieValue); - exit(0); - } + if (*Config->DieValue) + { + printf("WARNING: %s\n\n",Config->DieValue); + log(DEFAULT,"Uh-Oh, somebody didn't read their config file: '%s'",Config->DieValue); + Exit(ERROR); + } } void LoadAllModules(InspIRCd* ServerInstance) |