diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-01 16:03:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-01 16:03:06 +0000 |
commit | f9f61ff60134a00220a360794e302be9bc90c46c (patch) | |
tree | 6b377400701a47a63abc42d1ad6f08a8c5c43713 /src | |
parent | f1a204630332bbfc4a90c6c17998133d00932d01 (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')
-rwxr-xr-x | src/svn-rev.sh | 2 | ||||
-rw-r--r-- | src/userprocess.cpp | 9 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/svn-rev.sh b/src/svn-rev.sh index 30eb7e104..8f95b2fb0 100755 --- a/src/svn-rev.sh +++ b/src/svn-rev.sh @@ -1 +1 @@ -echo 3395 +echo 3397 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]; |