From a6e0332e3caca23bf6324d87969b7c454182e0a7 Mon Sep 17 00:00:00 2001 From: 20dka Date: Mon, 7 Nov 2022 15:49:22 +0100 Subject: [PATCH] add command 'quit' as alternative to 'exit' --- src/TConsole.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TConsole.cpp b/src/TConsole.cpp index 1434b19..8d8be1d 100644 --- a/src/TConsole.cpp +++ b/src/TConsole.cpp @@ -240,7 +240,8 @@ void TConsole::Command_Help(const std::string&, const std::vector& static constexpr const char* sHelpString = R"( Commands: help displays this help - exit shuts down the server + exit + quit shuts down the server kick [reason] kicks specified player with an optional reason list lists all players and info about them say sends the message to all players in chat @@ -775,7 +776,7 @@ TConsole::TConsole() { } else { if (!mLuaEngine) { beammp_error("Attempted to run a command before Lua engine started. Please wait and try again."); - } else if (cmd == "exit") { + } else if (cmd == "exit" || cmd == "quit") { beammp_info("gracefully shutting down"); Application::GracefullyShutdown(); } else if (cmd == "say") {