diff options
| author | 2020-01-01 12:33:10 +0100 | |
|---|---|---|
| committer | 2020-01-01 12:33:10 +0100 | |
| commit | f856d5ab8af6a0ffd3e5f63a5711e256e8e74267 (patch) | |
| tree | 941b8135b5183b1d1e48fe108aeaa5bff5678a14 /src/helperfuncs.cpp | |
| parent | Get rid of UserManager#OperCount and UserManager#UserCount. (diff) | |
| parent | Update my name and email address. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/helperfuncs.cpp')
| -rw-r--r-- | src/helperfuncs.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 5d5998d3f..1bd16546a 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -338,18 +338,6 @@ bool InspIRCd::IsSID(const std::string &str) ((str[2] >= 'A' && str[2] <= 'Z') || isdigit(str[2]))); } -void InspIRCd::CheckRoot() -{ -#ifndef _WIN32 - if (geteuid() == 0) - { - std::cout << "ERROR: You are running an irc server as root! DO NOT DO THIS!" << std::endl << std::endl; - this->Logs.Log("STARTUP", LOG_DEFAULT, "Can't start as root"); - Exit(EXIT_STATUS_ROOT); - } -#endif -} - /** A lookup table of values for multiplier characters used by * InspIRCd::Duration(). In this lookup table, the indexes for * the ascii values 'm' and 'M' have the value '60', the indexes |
