Add option to servatrice to disable replay storage.

This commit is contained in:
woogerboy21 2015-08-10 15:29:30 -04:00
parent de1b925b7d
commit fefceac2c6
3 changed files with 9 additions and 0 deletions

View file

@ -642,6 +642,9 @@ void Servatrice_DatabaseInterface::storeGameInformation(const QString &roomName,
if (!checkSql())
return;
if (!settingsCache->value("game/store_replays", 1).toBool() )
return;
QVariantList gameIds1, playerNames, gameIds2, userIds, replayNames;
QSetIterator<QString> playerIterator(allPlayersEver);
while (playerIterator.hasNext()) {