mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-09 03:18:33 +00:00
Prevent basecommands from printing to disconnected clients (#1138)
This commit is contained in:
parent
c6df989061
commit
6d3e4e756f
@ -395,10 +395,15 @@ public Action Command_Rcon(int client, int args)
|
||||
if (client == 0) // They will already see the response in the console.
|
||||
{
|
||||
ServerCommand("%s", argstring);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
char responseBuffer[4096];
|
||||
ServerCommandEx(responseBuffer, sizeof(responseBuffer), "%s", argstring);
|
||||
ReplyToCommand(client, responseBuffer);
|
||||
if (IsClientConnected(client))
|
||||
{
|
||||
ReplyToCommand(client, responseBuffer);
|
||||
}
|
||||
}
|
||||
|
||||
return Plugin_Handled;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user