From: Alexander Barton Date: Sun, 22 Jan 2012 17:35:54 +0000 (+0100) Subject: Check G/K-Lines before the client has been registered, too X-Git-Tag: rel-19-rc1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0c9931ad8db8a9bd7d6c030d856ccc28c6facc2;p=ngircd Check G/K-Lines before the client has been registered, too This allows to use "*!@" or "*!*@" masks to reject clients even before receiving PASS, NICK and USER commands and before forking authentication child processes which reduces resource usage. --- diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 5f3c18af..40a2af6e 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -2225,6 +2225,7 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events ) "NOTICE AUTH :*** No ident response"); } #endif + Class_HandleServerBans(c); } #ifdef DEBUG else Log( LOG_DEBUG, "Resolver: discarding result for already registered connection %d.", i );