1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 02:06:37 +02:00

Rework some platform compatibility code.

This commit is contained in:
Sadie Powell
2024-02-29 19:07:18 +00:00
parent a67bef2dee
commit 190c37a68b
4 changed files with 7 additions and 12 deletions
+2 -1
View File
@@ -28,6 +28,7 @@
#include <pwd.h>
#include <sys/types.h>
#endif
#include <thread>
Anope::string Anope::ConfigDir = "conf", Anope::DataDir = "data", Anope::ModuleDir = "lib", Anope::LocaleDir = "locale", Anope::LogDir = "logs";
@@ -513,7 +514,7 @@ bool Anope::Init(int ac, char **av)
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);
std::this_thread::sleep_for(std::chrono::seconds(3));
}
}