From bd426934cf6175b6ff2f51d3609f22210fdfac34 Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 5 Jun 2016 14:16:36 +0100 Subject: Add patch from Pie-Man to stop flooding connecting servers with 451 errors --- src/parse.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/parse.c b/src/parse.c index bf94a92..447dcd2 100644 --- a/src/parse.c +++ b/src/parse.c @@ -310,6 +310,18 @@ handle_command(struct Message *mptr, struct Client *client_p, handler = mptr->handlers[client_p->handler]; + /* New patch to avoid server flooding from unregistered connects + - Pie-Man 07/27/2000 -- while we have hybrid-7 -- rmk*/ + if (!IsRegistered(client_p)) + { + /* if its from a possible server connection + * ignore it.. more than likely its a header thats sneaked through + */ + if ((IsHandshake(client_p) || IsConnecting(client_p) || IsServer(client_p)) && + handler == m_unregistered) + return; + } + /* check right amount of params is passed... --is */ if (i < mptr->args_min) { -- cgit