From 8cbd70a8ed911741953d0bd67e3f893ce8308999 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sun, 24 Apr 2016 17:41:44 +0100 Subject: [PATCH] ircd: don't send ERR_NOTREGISTERED to servers Sending messages after SERVER but before zlib is established breaks outgoing connections. If the other server is misbehaving then ignore its messages. --- ircd/parse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ircd/parse.c b/ircd/parse.c index 9af59791..d6f83b43 100644 --- a/ircd/parse.c +++ b/ircd/parse.c @@ -518,6 +518,9 @@ m_not_oper(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sour void m_unregistered(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { + if(IsAnyServer(client_p)) + return; + /* bit of a hack. * I don't =really= want to waste a bit in a flag * number_of_nick_changes is only really valid after the client