diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-31 17:22:02 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-31 17:22:02 +0000 |
commit | 4ae08d527280778daf991a38af80956c2b84693b (patch) | |
tree | 97e57f8b54f81578f7eb2fe0a6e5c8bd06ca5b14 /src/userprocess.cpp | |
parent | de17f45ced928d8cc3c7fbbb4882ac6a68ce4171 (diff) |
Fixified some more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8428 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r-- | src/userprocess.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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; } } |