summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2013-09-02 16:37:50 +0200
committerAlexander Barton <alex@barton.de>2013-09-02 16:42:20 +0200
commit4102e8fdfea33a5d8c398c98db90914c5dc29610 (patch)
treec8b0ebe41d757114c4998435c10b9d0e3d2b5142 /src
parentf8f8a9a04146fb7a4e1570ce0474ea86806879ed (diff)
downloadngircd-4102e8fdfea33a5d8c398c98db90914c5dc29610.tar.gz
ngircd-4102e8fdfea33a5d8c398c98db90914c5dc29610.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 8d72c1c3..3b092787 100644
--- a/src/ngircd/conn.c
+++ b/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");
 		}