1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 17:16:38 +02:00

Add os_dns, a way to control your DNS zone via services

This commit is contained in:
Adam
2012-10-22 00:54:30 -04:00
parent d5b2f9cfa7
commit 0b9db15efc
12 changed files with 778 additions and 77 deletions
-11
View File
@@ -362,17 +362,6 @@ Anope::string GetFullProgDir(const Anope::string &argv0)
int main(int ac, char **av, char **envp)
{
#ifndef _WIN32
/* If we're root, issue a warning now */
if (!getuid() && !getgid())
{
std::cerr << "WARNING: You are currently running Anope as the root superuser. Anope does not" << std::endl;
std::cerr << " require root privileges to run, and it is discouraged that you run Anope" << std::endl;
std::cerr << " as the root superuser." << std::endl;
sleep(3);
}
#endif
binary_dir = GetFullProgDir(av[0]);
if (binary_dir[binary_dir.length() - 1] == '.')
binary_dir = binary_dir.substr(0, binary_dir.length() - 2);