mirror of
https://github.com/alicealys/t5-gsc-utils.git
synced 2025-04-19 20:42:54 +00:00
fix bad params crashing
This commit is contained in:
parent
762cb0d93f
commit
3020770cb3
@ -74,6 +74,11 @@ namespace command
|
|||||||
void client_command_stub(const int client_num)
|
void client_command_stub(const int client_num)
|
||||||
{
|
{
|
||||||
params_sv params = {};
|
params_sv params = {};
|
||||||
|
if (params.size() <= 1 || params[1] == "")
|
||||||
|
{
|
||||||
|
client_command_hook.invoke<void>(client_num);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const auto command = utils::string::to_lower(params[0]);
|
const auto command = utils::string::to_lower(params[0]);
|
||||||
if ((command == "say" || command == "say_team") &&
|
if ((command == "say" || command == "say_team") &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user