From 6e90a8ea557d6b86fcf2bae94aba80271be4efa1 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 9 Mar 2025 18:56:27 +0000 Subject: [PATCH] Don't tell users that services is shutting down when its restarting. --- src/uplink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uplink.cpp b/src/uplink.cpp index 981c5e6e5..ec6dbc199 100644 --- a/src/uplink.cpp +++ b/src/uplink.cpp @@ -130,7 +130,8 @@ UplinkSocket::~UplinkSocket() if (u->server == Me) { /* Don't use quitmsg here, it may contain information you don't want people to see */ - IRCD->SendQuit(u, "Shutting down", Anope::QuitReason); + const auto *reason = Anope::Restarting ? "Restarting" : "Shutting down"; + IRCD->SendQuit(u, reason, Anope::QuitReason); BotInfo *bi = BotInfo::Find(u->GetUID()); if (bi != NULL) bi->introduced = false;