summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-13 15:27:40 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-13 15:27:40 +0200
commit467b276d9d0407ec412262525c43c28d47fdae2f (patch)
treeaaaa348fa1c2ea635b9e3b3ae29d9ef57d5e0dae /src/xline.cpp
parentcaa0c27a5a485151a0de21e700680c1e46ab85b4 (diff)
Change allocation of InspIRCd::BanCache to be physically part of the object containing it
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 9b90c56f7..c48db51b1 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -275,7 +275,7 @@ bool XLineManager::AddLine(XLine* line, User* user)
if (!xlf)
return false;
- ServerInstance->BanCache->RemoveEntries(line->type, false); // XXX perhaps remove ELines here?
+ ServerInstance->BanCache.RemoveEntries(line->type, false); // XXX perhaps remove ELines here?
if (xlf->AutoApplyToUserList(line))
pending_lines.push_back(line);
@@ -305,7 +305,7 @@ bool XLineManager::DelLine(const char* hostmask, const std::string &type, User*
if (simulate)
return true;
- ServerInstance->BanCache->RemoveEntries(y->second->type, true);
+ ServerInstance->BanCache.RemoveEntries(y->second->type, true);
FOREACH_MOD(OnDelLine, (user, y->second));
@@ -544,7 +544,7 @@ void XLine::DefaultApply(User* u, const std::string &line, bool bancache)
if (bancache)
{
ServerInstance->Logs->Log("BANCACHE", LOG_DEBUG, "BanCache: Adding positive hit (" + line + ") for " + u->GetIPString());
- ServerInstance->BanCache->AddHit(u->GetIPString(), this->type, banReason, this->duration);
+ ServerInstance->BanCache.AddHit(u->GetIPString(), this->type, banReason, this->duration);
}
}