From 01a726e7a311cb45b18dcdc42875166e9e52ca21 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 4 Jun 2007 16:44:58 +0000 Subject: The recvq > netbuffersize check isnt needed *at all* as we check recvq > recvqmax in userrec::AddBuffer called just above it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7229 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index ff434e394..3a85be62a 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -122,23 +122,6 @@ void InspIRCd::ProcessUser(userrec* cu) return; } - if (current->recvq.length() > (unsigned)this->Config->NetBufferSize) - { - if (current->registered == REG_ALL) - { - current->SetWriteError("RecvQ exceeded"); - } - else - { - this->WriteOpers("*** Excess flood from %s",current->GetIPString()); - this->SNO->WriteToSnoMask('f',"Excess flood from: %s",current->GetIPString()); - XLines->add_zline(120,this->Config->ServerName,"Flood from unregistered connection",current->GetIPString()); - XLines->apply_lines(APPLY_ZLINES); - } - - return; - } - // while there are complete lines to process... while (current->BufferIsReady()) { -- cgit v1.2.3