aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-06-19 13:08:38 +0100
committerGravatar Sadie Powell2026-06-19 13:08:38 +0100
commitc5e7d4d8451a7c8a74f885e429ea02e7ce8713a7 (patch)
tree93141d5c30cfd7b726b1555cfa7068115e43b9f3 /src/server.cpp
parentFix using the wrong error code when exiting from /DIE. (diff)
There's no need to print an error message when we exit cleanly.
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index c064494f2..5bfc72621 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -59,7 +59,7 @@ void InspIRCd::Exit(int status)
this->Cleanup();
ServerInstance = nullptr;
delete this;
- if (isatty(fileno(stdout)))
+ if (status && isatty(fileno(stdout)))
{
fmt::println("");
fmt::println("Exiting with code {}.", status);