summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parse.c12
1 files changed, 12 insertions, 0 deletions
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)
{