Clear the ban cache when an xline is expired as well as removed.

This commit is contained in:
Sadie Powell 2022-10-15 20:22:27 +01:00
parent 5da227cf84
commit d2392598c2

View File

@ -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)