From f0d817cf39987e7b7548863c86beac29440ab7c6 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 12 Jul 2023 02:04:57 +0100 Subject: Remove rang and use fmtlib for printing coloured messages. This supports more platforms (e.g. Haiku) and is actually still maintained unlike the former. All of this code should really be cleaned up for release (maybe by adding something like Anope's LOG_CONSOLE) but for now I've just replaced it with the fmtlib equivalent. --- src/configreader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 1c418eae7..e71c22f59 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -31,7 +31,6 @@ #include -#include #ifndef _WIN32 # include #endif @@ -507,9 +506,11 @@ void ServerConfig::Apply(ServerConfig* old, const std::string& useruid) getline(errstr, line, '\n'); if (line.empty()) continue; + // On startup, print out to console (still attached at this point) if (!old) - std::cout << line << std::endl; + fmt::println(line); + // If a user is rehashing, tell them directly if (user) user->WriteRemoteNotice(INSP_FORMAT("*** {}", line)); -- cgit v1.3.1-10-gc9f91