Anti flood for game commands

This commit is contained in:
Fabio Bas 2015-03-14 19:44:32 +01:00
parent 20603c7e9b
commit 0e437cf13b
6 changed files with 41 additions and 7 deletions

View file

@ -51,7 +51,7 @@ protected:
bool acceptsRoomListChanges;
virtual void logDebugMessage(const QString & /* message */) { }
private:
QList<int> messageSizeOverTime, messageCountOverTime;
QList<int> messageSizeOverTime, messageCountOverTime, commandCountOverTime;
int timeRunning, lastDataReceived;
QTimer *pingClock;