mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-08 19:08:35 +00:00
Prevent clients from spamming global chat using sm_nominate (#1217)
This commit is contained in:
parent
b68b5200c1
commit
76c9e7c92e
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user