mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +00:00
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.
This commit is contained in:
parent
f8f8a9a041
commit
4102e8fdfe
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user