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.
This commit is contained in:
Simon Arlott 2016-04-24 17:41:44 +01:00
parent 5ad62c80ee
commit 8cbd70a8ed
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -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