Commit Diff
Diff:
f8f8a9a04146fb7a4e1570ce0474ea86806879ed
4102e8fdfea33a5d8c398c98db90914c5dc29610
4102e8fdfea33a5d8c398c98db90914c5dc29610
Commit:
4102e8fdfea33a5d8c398c98db90914c5dc29610
Tree:
c8b0ebe41d757114c4998435c10b9d0e3d2b5142
Committer:
Alexander Barton <alex@barton.de>
Date:
Mon Sep 2 14:42:20 2013
UTC
Message:
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
+++ 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");
}