From 64fec23cc76f86650860a24e5dae1d49e27f9111 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 6 Jan 2008 01:31:43 +0000 Subject: Add removal of BanCache entries on XLINE add/del, so we avoid out of date responses. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8641 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/xline.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index 59f94ce88..dc054dc70 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -151,6 +151,8 @@ bool XLineManager::AddLine(XLine* line, User* user) { /*IdentHostPair ih = IdentSplit(hostmask);*/ + ServerInstance->BanCache->RemoveEntries(line->type, true); + if (DelLine(line->Displayable(), line->type, user, true)) return false; @@ -181,6 +183,8 @@ bool XLineManager::DelLine(const char* hostmask, const std::string &type, User* if (simulate) return true; + ServerInstance->BanCache->RemoveEntries(y->second->type, false); + FOREACH_MOD(I_OnDelLine,OnDelLine(user, y->second)); y->second->Unset(); -- cgit v1.2.3