summaryrefslogtreecommitdiff
path: root/src/uplink.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-03-09 18:56:27 +0000
committerSadie Powell <sadie@witchery.services>2025-03-09 18:56:27 +0000
commit6e90a8ea557d6b86fcf2bae94aba80271be4efa1 (patch)
tree05aac65a4f3ca28441cf62a3873237c48c886ab4 /src/uplink.cpp
parent6d7fe69cdf9ff1b8fcb149734753c2800894b68e (diff)
Don't tell users that services is shutting down when its restarting.
Diffstat (limited to 'src/uplink.cpp')
-rw-r--r--src/uplink.cpp3
1 files changed, 2 insertions, 1 deletions
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;