summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-04 16:44:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-04 16:44:58 +0000
commit01a726e7a311cb45b18dcdc42875166e9e52ca21 (patch)
treee5b7bcda96ca14fc827bcded2180923a2e515edb
parent59d126a3a731b3f1efebdac5073cb50f787fdeec (diff)
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
-rw-r--r--src/userprocess.cpp17
1 files changed, 0 insertions, 17 deletions
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())
{