summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 1b91a86ef..8798f03f0 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -218,32 +218,8 @@ CmdResult CommandParser::CallHandler(const std::string &commandname, const std::
void CommandParser::DoLines(User* current, bool one_only)
{
- // while there are complete lines to process...
- unsigned int floodlines = 0;
-
while (current->BufferIsReady())
{
- if (current->MyClass)
- {
- if (ServerInstance->Time() > current->reset_due)
- {
- current->reset_due = ServerInstance->Time() + current->MyClass->GetThreshold();
- current->lines_in = 0;
- }
-
- if (++current->lines_in > current->MyClass->GetFlood() && current->MyClass->GetFlood())
- {
- ServerInstance->FloodQuitUser(current);
- return;
- }
-
- if ((++floodlines > current->MyClass->GetFlood()) && (current->MyClass->GetFlood() != 0))
- {
- ServerInstance->FloodQuitUser(current);
- return;
- }
- }
-
// use GetBuffer to copy single lines into the sanitized string
std::string single_line = current->GetBuffer();
current->bytes_in += single_line.length();