From a1e9cc5c51d8abca9182f857147af052d23559e0 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 10 Aug 2013 03:40:59 +0200 Subject: [PATCH] Spam protect whisper --- src/game/server/gamecontext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 52b258ab8..ebf4baef2 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -2245,6 +2245,9 @@ void CGameContext::Whisper(int ClientID, char *pStr) char *pMessage; int Error = 0; + if(ProcessSpamProtection(ClientID)) + return; + pStr = str_skip_whitespaces(pStr); // add token