From b65230cd34d53ec337b82d9f1dc8fcc543bd262e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 14 Jun 2026 17:32:15 +0100 Subject: 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. --- src/server.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/server.cpp') 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); } -- cgit v1.3.1-10-gc9f91