diff options
| author | 2008-01-06 01:31:43 +0000 | |
|---|---|---|
| committer | 2008-01-06 01:31:43 +0000 | |
| commit | 64fec23cc76f86650860a24e5dae1d49e27f9111 (patch) | |
| tree | b66905137f76843dd18e279adf2dc8853725d4e8 /src/xline.cpp | |
| parent | Add bancache expiry stuff, currently records expire 60 seconds after creation... (diff) | |
| download | inspircd++-64fec23cc76f86650860a24e5dae1d49e27f9111.tar.gz inspircd++-64fec23cc76f86650860a24e5dae1d49e27f9111.tar.bz2 inspircd++-64fec23cc76f86650860a24e5dae1d49e27f9111.zip | |
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
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(); |
