aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-06-14 17:32:15 +0100
committerGravatar Sadie Powell2026-06-14 22:08:28 +0100
commitb65230cd34d53ec337b82d9f1dc8fcc543bd262e (patch)
treeafb9064639e00c800516c0a69d943d8abfbc4ab4 /src/server.cpp
parentFix 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.cpp5
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);
}