From 4ae08d527280778daf991a38af80956c2b84693b Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 31 Oct 2007 17:22:02 +0000 Subject: Fixified some more git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8428 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 066800409..39d3ad0ec 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -29,8 +29,11 @@ void FloodQuitUserHandler::Call(User* current) if (current->registered != REG_ALL) { - Server->XLines->AddZLine(120, Server->Config->ServerName, "Flood from unregistered connection", current->GetIPString()); - Server->XLines->ApplyLines(); + ZLine* zl = new ZLine(Server, Server->Time(), 0, Server->Config->ServerName, "Flood from unregistered connection", current->GetIPString()); + if (Server->XLines->AddLine(zl)) + Server->XLines->ApplyLines(); + else + delete zl; } } -- cgit v1.2.3