aboutsummaryrefslogtreecommitdiff
path: root/src/socketengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r--src/socketengine.cpp6
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);
}