From 7f239bb9315d30306d232898ad263758dd419e24 Mon Sep 17 00:00:00 2001 From: Tom <25043847+Douile@users.noreply.github.com> Date: Sat, 21 Mar 2020 17:24:45 +0000 Subject: [PATCH] Prevent clients from spamming global chat using sm_nominate (#1217) --- plugins/nominations.sp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/nominations.sp b/plugins/nominations.sp index db5244c9..40dbef78 100644 --- a/plugins/nominations.sp +++ b/plugins/nominations.sp @@ -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; }