diff options
| author | 2026-06-14 17:32:15 +0100 | |
|---|---|---|
| committer | 2026-06-14 22:08:28 +0100 | |
| commit | b65230cd34d53ec337b82d9f1dc8fcc543bd262e (patch) | |
| tree | afb9064639e00c800516c0a69d943d8abfbc4ab4 /src/server.cpp | |
| parent | Fix building ssl_openssl on OpenSSL 4. (diff) | |
Improve the output printed when starting up.
* Use a better startup message with links to documentation and
other useful pages.
* Use a red "Error!" and a yellow "Warning!" prefix consistently for
all errors and warnings respectively.
* Don't mention loading core modules. This is an implementation
detail that isn't really relevant for most users.
* Avoid printing unnecessary whitespace around module errors.
Diffstat (limited to 'src/server.cpp')
| -rw-r--r-- | src/server.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index 68959d29f..5f501d454 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -55,6 +55,11 @@ void InspIRCd::Exit(int status) this->Cleanup(); ServerInstance = nullptr; delete this; + if (isatty(fileno(stdout))) + { + fmt::println(""); + fmt::println("Exiting with code {}.", status); + } exit(status); } |
