X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fuserprocess.cpp;h=44ed3559b5b1e65d094ca51a9c9cef860622b528;hb=b0546ed55e040330dd28a856d6fab2e55863dd1f;hp=a529f44767b0fd8e5efcdcbe7c27a2cad0a8846c;hpb=9994478a85358bfa48bd5b764ebc1e74e928d57a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/userprocess.cpp b/src/userprocess.cpp index a529f4476..44ed3559b 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -102,36 +102,12 @@ void ProcessUserHandler::Call(User* cu) if (!current->AddBuffer(ReadBuffer)) { // AddBuffer returned false, theres too much data in the user's buffer and theyre up to no good. - if (current->registered == REG_ALL) - { - if (current->MyClass) - { - // Make sure they arn't flooding long lines. - if (Server->Time() > current->reset_due) - { - current->reset_due = Server->Time() + current->MyClass->GetThreshold(); - current->lines_in = 0; - } - - current->lines_in++; - - if (current->MyClass->GetFlood() && current->lines_in > current->MyClass->GetFlood()) - Server->FloodQuitUser(current); - else - { - current->WriteServ("NOTICE %s :Your previous line was too long and was not delivered (Over %d chars) Please shorten it.", current->nick.c_str(), MAXBUF-2); - current->recvq.clear(); - } - } - } - else - Server->FloodQuitUser(current); - + Server->FloodQuitUser(current); return; } /* If user is over penalty, dont process here, just build up */ - if (!current->Penalty < 10) + if (current->Penalty < 10) Server->Parser->DoLines(current); return;