Prevent clients from spamming global chat using sm_nominate (#1217)

This commit is contained in:
Tom 2020-03-21 17:24:45 +00:00 committed by GitHub
parent 23efe26655
commit 7f239bb931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,7 +351,11 @@ void AttemptNominate(int client, const char[] map, int size)
char name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
PrintToChatAll("[SM] %t", "Map Nominated", name, displayName);
if (result == Nominate_Added) {
PrintToChatAll("[SM] %t", "Map Nominated", name, displayName);
} else {
ReplyToCommand(client, "[SM] %t", "Map Nominated", name, displayName);
}
return;
}