summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/svn-rev.sh2
-rw-r--r--src/userprocess.cpp9
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];