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
+5 -1
View File
@@ -351,7 +351,11 @@ void AttemptNominate(int client, const char[] map, int size)
char name[MAX_NAME_LENGTH]; char name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name)); 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; return;
} }