mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +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:
		| @@ -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"); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton