From: Alexander Barton Date: Mon, 27 Aug 2012 20:05:55 +0000 (+0200) Subject: Enhance "NOTICE AUTH": show hostname and IDENT reply X-Git-Tag: rel-20-rc1~101 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=414bfe65ebe8ac1076476b25ed0bb91faad74f47 Enhance "NOTICE AUTH": show hostname and IDENT reply --- diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index e57aa242..fd175971 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -2257,7 +2257,8 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events ) Client_SetHostname(c, readbuf); if (Conf_NoticeAuth) (void)Conn_WriteStr(i, - "NOTICE AUTH :*** Found your hostname"); + "NOTICE AUTH :*** Found your hostname: %s", + My_Connections[i].host); #ifdef IDENTAUTH ++identptr; if (*identptr) { @@ -2282,8 +2283,10 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events ) } if (Conf_NoticeAuth) { (void)Conn_WriteStr(i, - "NOTICE AUTH :*** Got %sident response", - *ptr ? "invalid " : ""); + "NOTICE AUTH :*** Got %sident response%s%s", + *ptr ? "invalid " : "", + *ptr ? "" : ": ", + *ptr ? "" : identptr); } } else { Log(LOG_INFO, "IDENT lookup for connection %d: no result.", i);