From f9f61ff60134a00220a360794e302be9bc90c46c Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 1 Mar 2006 16:03:06 +0000 Subject: Removed old >512 check git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3399 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/userprocess.cpp') 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]; -- cgit v1.3.1-10-gc9f91