]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
BanCache: Add a negative hit for an IP address upon FullConnect.
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 4 Nov 2007 23:15:26 +0000 (23:15 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 4 Nov 2007 23:15:26 +0000 (23:15 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8540 e03df62e-2008-0410-955e-edbf42e46eb7

src/users.cpp

index 8dd3c3bf9ba4212f568fcd47dba9b8efd2497c59..54fa2b872bd5d5aaef5c3f38c4a22f31f7a9ab2f 100644 (file)
@@ -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()