mirror of
https://github.com/anope/anope.git
synced 2026-06-27 13:16:38 +02:00
Fix setting keepbackups to 0 in db_flatfile.
This commit is contained in:
@@ -145,9 +145,12 @@ class DBFlatFile final
|
||||
continue;
|
||||
}
|
||||
|
||||
const auto keepbackups = Config->GetModule(this).Get<unsigned>("keepbackups", "7");
|
||||
if (!keepbackups)
|
||||
continue;
|
||||
|
||||
std::error_code ec;
|
||||
std::set<Anope::string> old_backups;
|
||||
const auto keepbackups = Config->GetModule(this).Get<unsigned>("keepbackups", "7");
|
||||
for (const auto &entry : std::filesystem::directory_iterator(backupdir.str(), ec))
|
||||
{
|
||||
Anope::string entryname = entry.path().string();
|
||||
|
||||
Reference in New Issue
Block a user