summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-01 16:03:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-01 16:03:06 +0000
commitf9f61ff60134a00220a360794e302be9bc90c46c (patch)
tree6b377400701a47a63abc42d1ad6f08a8c5c43713 /src/userprocess.cpp
parentf1a204630332bbfc4a90c6c17998133d00932d01 (diff)
Removed old >512 check
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3399 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index d40ba494b..118916248 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -216,14 +216,7 @@ void ProcessUser(userrec* cu)
std::string single_line = current->GetBuffer();
current->bytes_in += single_line.length();
current->cmds_in++;
- if (single_line.length()>512)
- {
- log(DEFAULT,"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
- WriteOpers("*** Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
- kill_link(current,"Excess flood");
- return;
- }
- strlcpy(sanitized,single_line.c_str(),MAXBUF);
+ strlcpy(sanitized,single_line.c_str(),511);
if (*sanitized)
{
userrec* old_comp = fd_ref_table[currfd];