mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 16:44:48 -07:00
Anti flood for game commands
This commit is contained in:
parent
20603c7e9b
commit
0e437cf13b
6 changed files with 41 additions and 7 deletions
|
|
@ -60,8 +60,11 @@ public:
|
|||
virtual int getMaxMessageCountPerInterval() const { return 0; }
|
||||
virtual int getMaxMessageSizePerInterval() const { return 0; }
|
||||
virtual int getMaxGamesPerUser() const { return 0; }
|
||||
virtual int getCommandCountingInterval() const { return 0; }
|
||||
virtual int getMaxCommandCountPerInterval() const { return 0; }
|
||||
|
||||
virtual bool getThreaded() const { return false; }
|
||||
|
||||
|
||||
Server_DatabaseInterface *getDatabaseInterface() const;
|
||||
int getNextLocalGameId() { QMutexLocker locker(&nextLocalGameIdMutex); return ++nextLocalGameId; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue