diff options
| author | Alexander Barton <alex@barton.de> | 2012-08-27 22:05:55 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2012-08-27 22:05:55 +0200 |
| commit | 414bfe65ebe8ac1076476b25ed0bb91faad74f47 (patch) | |
| tree | faa7f35022305017055a6685a31258a951b03941 /src | |
| parent | c519ba9920d2d9b12016d0825382cd236219112c (diff) | |
| download | ngircd-414bfe65ebe8ac1076476b25ed0bb91faad74f47.tar.gz ngircd-414bfe65ebe8ac1076476b25ed0bb91faad74f47.zip | |
Enhance "NOTICE AUTH": show hostname and IDENT reply
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conn.c | 9 |
1 files changed, 6 insertions, 3 deletions
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); |