From ec46f6acda16b48a2d5620505e849f4e79de80d7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 26 Jan 2022 13:12:32 +0000 Subject: Replace consolecolors with a vendored library. This library supports much more than consolecolors including the Windows 8 console API. --- src/socketengine.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/socketengine.cpp') 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 #include "inspircd.h" -#include "consolecolors.h" #include "exitcodes.h" +// Needs to be included after inspircd.h to avoid reincluding winsock. +#include + /** Reference table, contains all current handlers **/ std::vector 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); } -- cgit v1.3.1-10-gc9f91