Prevent clients from spamming global chat using sm_nominate (#1217)
This commit is contained in:
parent
23efe26655
commit
7f239bb931
@ -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));
|
||||||
|
|
||||||
|
if (result == Nominate_Added) {
|
||||||
PrintToChatAll("[SM] %t", "Map Nominated", name, displayName);
|
PrintToChatAll("[SM] %t", "Map Nominated", name, displayName);
|
||||||
|
} else {
|
||||||
|
ReplyToCommand(client, "[SM] %t", "Map Nominated", name, displayName);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user