From d2392598c20be7e974e440bbf1204e0c69fc35fe Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 15 Oct 2022 20:22:27 +0100 Subject: Clear the ban cache when an xline is expired as well as removed. --- src/xline.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index c45ea56ce..4288af41c 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -430,6 +430,7 @@ XLine* XLineManager::MatchesLine(const std::string &type, const std::string &pat // removes lines that have expired void XLineManager::ExpireLine(ContainerIter container, LookupIter item, bool silent) { + ServerInstance->BanCache.RemoveEntries(item->second->type, true); FOREACH_MOD(OnExpireLine, (item->second)); if (!silent) -- cgit v1.3.1-10-gc9f91