diff options
| author | 2022-01-26 13:12:32 +0000 | |
|---|---|---|
| committer | 2022-01-26 15:34:17 +0000 | |
| commit | ec46f6acda16b48a2d5620505e849f4e79de80d7 (patch) | |
| tree | 3990d96570371d294b14d110d7baaa2020773fc3 /src/socketengine.cpp | |
| parent | Slim the included headers down more. (diff) | |
Replace consolecolors with a vendored library.
This library supports much more than consolecolors including the
Windows 8 console API.
Diffstat (limited to 'src/socketengine.cpp')
| -rw-r--r-- | src/socketengine.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp index b3fce1674..accde723f 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -29,9 +29,11 @@ #include <iostream> #include "inspircd.h" -#include "consolecolors.h" #include "exitcodes.h" +// Needs to be included after inspircd.h to avoid reincluding winsock. +#include <rang/rang.hpp> + /** Reference table, contains all current handlers **/ std::vector<EventHandler*> SocketEngine::ref; @@ -71,7 +73,7 @@ void EventHandler::OnEventHandlerError(int errornum) void SocketEngine::InitError() { - std::cerr << con_red << "FATAL ERROR!" << con_reset << " Socket engine initialization failed. " << strerror(errno) << '.' << std::endl; + std::cerr << rang::style::bold << rang::fg::red << "FATAL ERROR!" << rang::style::reset << " Socket engine initialization failed. " << strerror(errno) << '.' << std::endl; exit(EXIT_STATUS_SOCKETENGINE); } |
