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

@ -259,6 +259,8 @@ bool Servatrice::initServer()
maxMessageCountPerInterval = settingsCache->value("security/max_message_count_per_interval", 10).toInt();
maxMessageSizePerInterval = settingsCache->value("security/max_message_size_per_interval", 1000).toInt();
maxGamesPerUser = settingsCache->value("security/max_games_per_user", 5).toInt();
commandCountingInterval = settingsCache->value("game/command_counting_interval", 10).toInt();
maxCommandCountPerInterval = settingsCache->value("game/max_command_count_per_interval", 10).toInt();
try { if (settingsCache->value("servernetwork/active", 0).toInt()) {
qDebug() << "Connecting to ISL network.";