From 01451ab26ef427267effead17d526d2b20fd3e8b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 5 Feb 2019 17:26:19 +0000 Subject: Quit users during cleanup instead of when /DIE is executed. --- src/inspircd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 94132cf95..b6c252104 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -94,6 +94,12 @@ void InspIRCd::Cleanup() } ports.clear(); + // Disconnect all local users + const std::string quitmsg = "Server shutting down"; + const UserManager::LocalList& list = Users.GetLocalUsers(); + while (!list.empty()) + ServerInstance->Users.QuitUser(list.front(), quitmsg); + GlobalCulls.Apply(); Modules->UnloadAll(); -- cgit v1.3.1-10-gc9f91