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/modulemanager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modulemanager.cpp') diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index c2c299907..50fcd912c 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -27,9 +27,11 @@ #include #include "inspircd.h" -#include "consolecolors.h" #include "exitcodes.h" +// Needs to be included after inspircd.h to avoid reincluding winsock. +#include + bool ModuleManager::Load(const std::string& modname, bool defer) { /* Don't allow people to specify paths for modules, it doesn't work as expected */ @@ -147,7 +149,7 @@ void ModuleManager::LoadCoreModules(std::map& servicem if (!Load(name, true)) { ServerInstance->Logs.Log("MODULE", LOG_DEFAULT, this->LastError()); - std::cout << std::endl << "[" << con_red << "*" << con_reset << "] " << this->LastError() << std::endl << std::endl; + std::cout << std::endl << "[" << rang::style::bold << rang::fg::red << "*" << rang::style::reset << "] " << this->LastError() << std::endl << std::endl; ServerInstance->Exit(EXIT_STATUS_MODULE); } } -- cgit v1.3.1-10-gc9f91