diff options
| author | 2022-01-26 13:12:32 +0000 | |
|---|---|---|
| committer | 2022-01-26 15:34:17 +0000 | |
| commit | ec46f6acda16b48a2d5620505e849f4e79de80d7 (patch) | |
| tree | 3990d96570371d294b14d110d7baaa2020773fc3 /src/modulemanager.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/modulemanager.cpp')
| -rw-r--r-- | src/modulemanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <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> + 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<std::string, ServiceList>& 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); } } |
