aboutsummaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-15 20:22:27 +0100
committerGravatar Sadie Powell2022-10-15 20:22:27 +0100
commitd2392598c20be7e974e440bbf1204e0c69fc35fe (patch)
treecdd7890db5ef319879e5848d5e87ddaaa4f4f0d5 /src/xline.cpp
parentDocument how DNS PTR record lookups work better. (diff)
Clear the ban cache when an xline is expired as well as removed.
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp1
1 files changed, 1 insertions, 0 deletions
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)