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:
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user