From 47514c7708f2c753bca148953ad4e3a24d09085f Mon Sep 17 00:00:00 2001 From: Erik Minekus Date: Wed, 1 Jul 2020 19:58:20 +0200 Subject: [PATCH] Do not require quotes around message in sm_psay (#1300) --- plugins/basechat.sp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/basechat.sp b/plugins/basechat.sp index 46dd1472..74d4070f 100644 --- a/plugins/basechat.sp +++ b/plugins/basechat.sp @@ -277,18 +277,17 @@ public Action Command_SmPsay(int client, int args) return Plugin_Handled; } - char text[192], arg[64], message[192]; + char text[192], arg[64]; GetCmdArgString(text, sizeof(text)); int len = BreakString(text, arg, sizeof(arg)); - BreakString(text[len], message, sizeof(message)); int target = FindTarget(client, arg, true, false); if (target == -1) return Plugin_Handled; - SendPrivateChat(client, target, message); + SendPrivateChat(client, target, text[len]); return Plugin_Handled; }