repo: ngircd
action: commit
revision: 
path_from: 
revision_from: e0c9931ad8db8a9bd7d6c030d856ccc28c6facc2:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit e0c9931ad8db8a9bd7d6c030d856ccc28c6facc2
Author: Alexander Barton 
Date:   Sun Jan 22 18:35:54 2012 +0100

    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 5f3c18afd0108fe8eb115c236257cc3c2879bcd7..
index ..40a2af6e17f5b10f24467833b0f8ac4c9043020b 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 );

-----END OF PAGE-----