mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
use correct settings group for command interval settings (#4257)
the settings command_counting_interval and max_command_count_per_interval are now in the [security] group as hinted by their location in servatrice.ini.example check values of comand interval settings before use
This commit is contained in:
parent
aa6a0313e9
commit
7e3a669af0
2 changed files with 13 additions and 7 deletions
|
|
@ -955,12 +955,12 @@ int Servatrice::getMaxGamesPerUser() const
|
|||
|
||||
int Servatrice::getCommandCountingInterval() const
|
||||
{
|
||||
return settingsCache->value("game/command_counting_interval", 10).toInt();
|
||||
return settingsCache->value("security/command_counting_interval", 10).toInt();
|
||||
}
|
||||
|
||||
int Servatrice::getMaxCommandCountPerInterval() const
|
||||
{
|
||||
return settingsCache->value("game/max_command_count_per_interval", 20).toInt();
|
||||
return settingsCache->value("security/max_command_count_per_interval", 20).toInt();
|
||||
}
|
||||
|
||||
int Servatrice::getServerStatusUpdateTime() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue