mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Actually should spam protect sql messages
This commit is contained in:
parent
292c18a1e0
commit
6dc501f286
|
@ -753,7 +753,7 @@ void CSqlScore::ShowTeamRankThread(void *pUser)
|
|||
else
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Team time: %02d:%05.02f, requested by %s", Rank, aNames, (int)(Time/60), Time-((int)Time/60*60), pData->m_aRequestingPlayer);
|
||||
|
||||
pData->m_pSqlData->GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf, -1);
|
||||
pData->m_pSqlData->GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf, pData->m_ClientID);
|
||||
}
|
||||
|
||||
dbg_msg("SQL", "Showing teamrank done");
|
||||
|
@ -922,7 +922,7 @@ void CSqlScore::ShowRankThread(void *pUser)
|
|||
else
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Time: %02d:%05.2f, requested by %s", Rank, pData->m_pSqlData->m_pResults->getString("Name").c_str(), (int)(Time/60), Time-((int)Time/60*60), pData->m_aRequestingPlayer);
|
||||
|
||||
pData->m_pSqlData->GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf, -1);
|
||||
pData->m_pSqlData->GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf, pData->m_ClientID);
|
||||
}
|
||||
|
||||
dbg_msg("SQL", "Showing rank done");
|
||||
|
@ -1338,7 +1338,7 @@ void CSqlScore::ShowPointsThread(void *pUser)
|
|||
int count = (int)pData->m_pSqlData->m_pResults->getInt("Points");
|
||||
int rank = (int)pData->m_pSqlData->m_pResults->getInt("rank");
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Points: %d, requested by %s", rank, pData->m_pSqlData->m_pResults->getString("Name").c_str(), count, pData->m_aRequestingPlayer);
|
||||
pData->m_pSqlData->GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf, -1);
|
||||
pData->m_pSqlData->GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf, pData->m_ClientID);
|
||||
}
|
||||
|
||||
dbg_msg("SQL", "Showing points done");
|
||||
|
|
Loading…
Reference in a new issue