1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 16:13:13 +02:00

Fix reading the purge time in cs_seen.

This commit is contained in:
Sadie Powell
2025-06-25 14:08:44 +01:00
parent 3cc5b5143f
commit a0d21b207b
+4 -3
View File
@@ -371,10 +371,11 @@ public:
void OnExpireTick() override
{
size_t previous_size = database.size();
time_t purgetime = Config->GetModule(this).Get<time_t>("purgetime");
auto purgetime = Config->GetModule(this).Get<time_t>("purgetime", "90d");
if (!purgetime)
purgetime = Anope::DoTime("30d");
return;
auto previous_size = database.size();
for (database_map::iterator it = database.begin(), it_end = database.end(); it != it_end;)
{
database_map::iterator cur = it;