From 4840d5e77572f42b710501912d59b5dbb6d2c2af Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 28 Oct 2007 18:33:06 +0000 Subject: - Tear out a useless load of XLine clutters that did nothing much except confuse things - Revert back to early 1.0 design of using a single list for line storage. We'll make this work more efficiently than 1.0 though of course. This simplifies the code for expiry, checking, etc. - Merge a bunch of sort callbacks into a single sort callback for class XLine. - Horribly break apply_lines() for the time being. .. and that's probably it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8398 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index eb5ea050c..d2c481fbb 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -26,10 +26,11 @@ void FloodQuitUserHandler::Call(User* current) current->registered == REG_ALL ? current->nick : "", current->registered == REG_ALL ? "!" : "", current->ident, current->host); User::QuitUser(Server, current, "Excess flood"); + if (current->registered != REG_ALL) { Server->XLines->add_zline(120, Server->Config->ServerName, "Flood from unregistered connection", current->GetIPString()); - Server->XLines->apply_lines(APPLY_ZLINES); + Server->XLines->apply_lines(); } } -- cgit v1.2.3