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/coremods/core_oper/cmd_die.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/coremods') diff --git a/src/coremods/core_oper/cmd_die.cpp b/src/coremods/core_oper/cmd_die.cpp index 8b80dd115..724db2f32 100644 --- a/src/coremods/core_oper/cmd_die.cpp +++ b/src/coremods/core_oper/cmd_die.cpp @@ -30,14 +30,6 @@ CommandDie::CommandDie(Module* parent, std::string& hashref) syntax = ""; } -static void QuitAll() -{ - const std::string quitmsg = "Server shutdown"; - const UserManager::LocalList& list = ServerInstance->Users.GetLocalUsers(); - while (!list.empty()) - ServerInstance->Users.QuitUser(list.front(), quitmsg); -} - void DieRestart::SendError(const std::string& message) { ClientProtocol::Messages::Error errormsg(message); @@ -70,7 +62,6 @@ CmdResult CommandDie::Handle(User* user, const Params& parameters) DieRestart::SendError(diebuf); } - QuitAll(); ServerInstance->Exit(EXIT_STATUS_DIE); } else -- cgit v1.2.3