Skip to content

Commit 47514c7

Browse files
authored
Do not require quotes around message in sm_psay (#1300)
1 parent b364bf8 commit 47514c7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

plugins/basechat.sp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,18 +277,17 @@ public Action Command_SmPsay(int client, int args)
277277
return Plugin_Handled;
278278
}
279279

280-
char text[192], arg[64], message[192];
280+
char text[192], arg[64];
281281
GetCmdArgString(text, sizeof(text));
282282

283283
int len = BreakString(text, arg, sizeof(arg));
284-
BreakString(text[len], message, sizeof(message));
285284

286285
int target = FindTarget(client, arg, true, false);
287286

288287
if (target == -1)
289288
return Plugin_Handled;
290289

291-
SendPrivateChat(client, target, message);
290+
SendPrivateChat(client, target, text[len]);
292291

293292
return Plugin_Handled;
294293
}

0 commit comments

Comments
 (0)