mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Spam protect whisper
This commit is contained in:
parent
b4f0b96acc
commit
a1e9cc5c51
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue