diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 23:04:47 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 23:04:47 +0000 |
commit | 880ae2dab166b4c8e72bc85a925c548f3d451a63 (patch) | |
tree | dc40b3d9e1ce366a48640fe1c24b23c398e1f85a /src/users.cpp | |
parent | cd44daa962c7b22f5564a771b78fcc63458b5eb8 (diff) |
Integrate K/Gline into the bancache system by making some modifications to DefaultApply method. This means any type of XLine that uses DefaultApply can hook into the bancache system and add positive hits quickly and easily with no modification, which is neat.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8538 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp index e21b0d222..8dd3c3bf9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -861,8 +861,6 @@ void User::AddClient(InspIRCd* Instance, int socket, int port, bool iscached, in if (r) { - Instance->Log(DEBUG, std::string("BanCache: Adding positive hit for ") + New->GetIPString()); - Instance->BanCache->AddHit(New->GetIPString(), "Z", std::string("Z-Lined: ") + r->reason); r->Apply(New); return; } @@ -965,7 +963,7 @@ void User::FullConnect() if (!this->exempt) { - XLine* r = ServerInstance->XLines->MatchesLine("G",this); + GLine *r = (GLine *)ServerInstance->XLines->MatchesLine("G", this); if (r) { @@ -974,7 +972,7 @@ void User::FullConnect() return; } - XLine* n = ServerInstance->XLines->MatchesLine("K",this); + KLine *n = (KLine *)ServerInstance->XLines->MatchesLine("K", this); if (n) { |