1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 21:06:38 +02:00

Don't tell users that services is shutting down when its restarting.

This commit is contained in:
Sadie Powell
2025-03-09 18:56:27 +00:00
parent 6d7fe69cdf
commit 6e90a8ea55
+2 -1
View File
@@ -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;