diff options
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |