Preventing spam of report avatar function on server side.

This commit is contained in:
lotodore
2010-12-25 21:54:26 +00:00
parent a06c1b6ac1
commit 609a0c4f82
3 changed files with 50 additions and 9 deletions
+6
View File
@@ -87,6 +87,9 @@ public:
void RemovePlayerInvitation(unsigned playerId);
bool IsPlayerInvited(unsigned playerId) const;
void AddReportedAvatar(unsigned playerId);
bool IsAvatarReported(unsigned playerId) const;
unsigned GetSmallDelaySec() const;
// should be protected, but is needed in function.
@@ -168,6 +171,9 @@ private:
PlayerIdList m_playerInvitationList;
mutable boost::mutex m_playerInvitationListMutex;
PlayerIdList m_reportedAvatarList;
mutable boost::mutex m_reportedAvatarListMutex;
RankingMap m_rankingMap;
unsigned m_adminPlayerId;