diff options
| author | 2023-07-12 02:04:57 +0100 | |
|---|---|---|
| committer | 2023-07-12 02:29:04 +0100 | |
| commit | f0d817cf39987e7b7548863c86beac29440ab7c6 (patch) | |
| tree | bbf0fb853dc086d666de40f27be38f933a354f6c /src/configreader.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
| download | inspircd++-f0d817cf39987e7b7548863c86beac29440ab7c6.tar.gz inspircd++-f0d817cf39987e7b7548863c86beac29440ab7c6.tar.bz2 inspircd++-f0d817cf39987e7b7548863c86beac29440ab7c6.zip | |
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.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <filesystem> -#include <iostream> #ifndef _WIN32 # include <unistd.h> #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)); |
