Module: ngircd.git Branch: master Commit: 4102e8fdfea33a5d8c398c98db90914c5dc29610 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=4102e...
Author: Alexander Barton alex@barton.de Date: Mon Sep 2 16:37:50 2013 +0200
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.
---
src/ngircd/conn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 8d72c1c..3b09278 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"); }
ngircd-commits@lists.barton.de