commit 4102e8fdfea33a5d8c398c98db90914c5dc29610
from: Alexander Barton <alex@barton.de>
date: Mon Sep 02 14:42:20 2013 UTC

Only log "IDENT ... no result" when IDENT was looked up

Without this patch, ngIRCd logged the "IDENT lookup for connection X:
no result"-message even when IDENT lookups have been disabled using the
"Ident = no" configuration option, which is a little bit misleading.

Reported by "btwe" in #ngircd.

commit - f8f8a9a04146fb7a4e1570ce0474ea86806879ed
commit + 4102e8fdfea33a5d8c398c98db90914c5dc29610
blob - 8d72c1c3253ef9ecb2cea8fb6e3521ee72306fbb
blob + 3b0927872374fccddf3fd9de63ef22b8f4e6524a
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
@@ -2454,9 +2454,9 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events
 					*ptr ? "" : ": ",
 					*ptr ? "" : identptr);
 			}
-		} else {
+		} else if(Conf_Ident) {
 			Log(LOG_INFO, "IDENT lookup for connection %d: no result.", i);
-			if (Conf_NoticeAuth && Conf_Ident)
+			if (Conf_NoticeAuth)
 				(void)Conn_WriteStr(i,
 					"NOTICE AUTH :*** No ident response");
 		}