summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 23:15:26 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 23:15:26 +0000
commit2cbafb754a9c884b17cfd714e16586639b3205a0 (patch)
tree40a1a69cbf7befa87cefddbe2582dc38bfae5e37 /src/users.cpp
parent99e5c4d39f06d88d58f5ea21fc2db418d495ec0a (diff)
BanCache: Add a negative hit for an IP address upon FullConnect.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8540 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 8dd3c3bf9..54fa2b872 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1016,6 +1016,9 @@ void User::FullConnect()
FOREACH_MOD(I_OnPostConnect,OnPostConnect(this));
ServerInstance->SNO->WriteToSnoMask('c',"Client connecting on port %d: %s!%s@%s [%s] [%s]", this->GetPort(), this->nick, this->ident, this->host, this->GetIPString(), this->fullname);
+
+ ServerInstance->Log(DEBUG, "BanCache: Adding NEGATIVE hit for %s", this->GetIPString());
+ ServerInstance->BanCache->AddHit(this->GetIPString(), "", "");
}
/** User::UpdateNick()