Do not require quotes around message in sm_psay (#1300)

This commit is contained in:
Erik Minekus 2020-07-01 19:58:20 +02:00 committed by GitHub
parent b364bf8b06
commit 47514c7708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}