Require DNSBL check on /modhelp

This commit is contained in:
Learath2 2018-07-12 12:50:27 +02:00
parent fed898b1cd
commit 5a5c563a20

View file

@ -1404,9 +1404,15 @@ void CGameContext::ConModhelp(IConsole::IResult *pResult, void *pUserData)
if(!pPlayer)
return;
if(!pSelf->Server()->DnsblWhite(pResult->m_ClientID))
{
pSelf->SendChatTarget(pResult->m_ClientID, "You are not allowed to make requests from a blacklisted ip.");
return;
}
if(pPlayer->m_pPostJson)
{
pSelf->SendChatTarget(pResult->m_ClientID, "Your last request hasn't finished processing yet, please slow down");
pSelf->SendChatTarget(pResult->m_ClientID, "Your last request hasn't finished processing yet, please slow down.");
return;
}