From 3020770cb346cb8f68f9f0f698799e8eecb6980e Mon Sep 17 00:00:00 2001 From: m Date: Fri, 7 Feb 2025 14:44:37 -0600 Subject: [PATCH] fix bad params crashing --- src/component/command.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/component/command.cpp b/src/component/command.cpp index fbde68e..76fd338 100644 --- a/src/component/command.cpp +++ b/src/component/command.cpp @@ -74,6 +74,11 @@ namespace command void client_command_stub(const int client_num) { params_sv params = {}; + if (params.size() <= 1 || params[1] == "") + { + client_command_hook.invoke(client_num); + return; + } const auto command = utils::string::to_lower(params[0]); if ((command == "say" || command == "say_team") &&